Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001117/0.001117, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001187/0.001187, allocations: 216.5 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.329/1.329, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001219, allocations: 54.78 kB / 307 MB, free: 0.5039 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08311/0.08435, allocations: 50.54 MB / 357.6 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.007858/0.09225, allocations: 6.426 MB / 364 MB, free: 7.5 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003276/0.09555, allocations: 1.909 MB / 365.9 MB, free: 5.586 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006633/0.09623, allocations: 19.94 kB / 365.9 MB, free: 5.566 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006737/0.09693, allocations: 222 kB / 366.2 MB, free: 5.348 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001113/0.09806, allocations: 404.8 kB / 366.6 MB, free: 4.949 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007648/0.09884, allocations: 371.5 kB / 366.9 MB, free: 4.586 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001533/0.1004, allocations: 1.514 MB / 368.4 MB, free: 3.066 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007004/0.1011, allocations: 0.5094 MB / 368.9 MB, free: 2.535 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007035/0.1018, allocations: 0.549 MB / 369.5 MB, free: 1.984 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006908/0.1025, allocations: 0.6107 MB / 370.1 MB, free: 1.371 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001787/0.1027, allocations: 160 kB / 370.3 MB, free: 1.215 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002291/0.1029, allocations: 164 kB / 370.4 MB, free: 1.055 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002182/0.1032, allocations: 311 kB / 370.7 MB, free: 0.75 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005308/0.1037, allocations: 0.6572 MB / 371.4 MB, free: 92 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1394/0.2431, allocations: 1.862 MB / 373.2 MB, free: 11.78 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.95e-06/0.2431, allocations: 4.031 kB / 373.2 MB, free: 11.78 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.2431, allocations: 0.5312 kB / 373.2 MB, free: 11.78 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.946e-05/0.2432, allocations: 3.281 kB / 373.2 MB, free: 11.78 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.002574/0.2457, allocations: 1.441 MB / 374.7 MB, free: 11.05 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.647e-05/0.2458, allocations: 13.17 kB / 374.7 MB, free: 11.05 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001652/0.246, allocations: 150.1 kB / 374.8 MB, free: 11.01 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005127/0.2465, allocations: 146 kB / 375 MB, free: 10.95 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009339/0.2474, allocations: 0.686 MB / 375.7 MB, free: 10.64 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001357/0.2476, allocations: 83.11 kB / 375.8 MB, free: 10.64 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001622/0.2477, allocations: 97.25 kB / 375.8 MB, free: 10.64 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001638/0.2494, allocations: 0.9783 MB / 376.8 MB, free: 10.56 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.262e-05/0.2494, allocations: 5.906 kB / 376.8 MB, free: 10.56 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.667e-05/0.2495, allocations: 39.81 kB / 376.9 MB, free: 10.56 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.044e-05/0.2495, allocations: 24 kB / 376.9 MB, free: 10.56 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001451/0.251, allocations: 0.8005 MB / 377.7 MB, free: 10.55 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004407/0.2554, allocations: 3.337 MB / 381 MB, free: 8.93 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001149/0.2566, allocations: 0.8071 MB / 381.8 MB, free: 8.586 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006456/0.2572, allocations: 437.5 kB / 382.3 MB, free: 8.406 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.048e-05/0.2573, allocations: 15.42 kB / 382.3 MB, free: 8.406 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.237e-05/0.2573, allocations: 45.44 kB / 382.3 MB, free: 8.359 MB / 302.1 MB Notification: Performance of pre-optimization done (n=95): time 2.585e-06/0.2573, allocations: 0 / 382.3 MB, free: 8.359 MB / 302.1 MB Notification: Performance of matching and sorting (n=119): time 0.007838/0.2652, allocations: 4.192 MB / 386.5 MB, free: 5.965 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.338e-05/0.2652, allocations: 89.77 kB / 386.6 MB, free: 5.871 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007403/0.266, allocations: 0.639 MB / 387.2 MB, free: 5.57 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.448e-05/0.266, allocations: 46.08 kB / 387.3 MB, free: 5.523 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001935/0.2662, allocations: 431.8 kB / 387.7 MB, free: 5.184 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001925/0.2664, allocations: 412.1 kB / 388.1 MB, free: 4.867 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002629/0.2667, allocations: 181.1 kB / 388.3 MB, free: 4.781 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.472e-05/0.2668, allocations: 404.2 kB / 388.7 MB, free: 4.426 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006348/0.2675, allocations: 344 kB / 389 MB, free: 4.293 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006921/0.2682, allocations: 488.1 kB / 389.5 MB, free: 4.031 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001303/0.2695, allocations: 0.8503 MB / 390.4 MB, free: 3.566 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.496e-06/0.2695, allocations: 1.938 kB / 390.4 MB, free: 3.566 MB / 302.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.001918/0.2714, allocations: 1.151 MB / 391.5 MB, free: 3.066 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.724e-05/0.2714, allocations: 6.094 kB / 391.5 MB, free: 3.066 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.836e-06/0.2715, allocations: 6.875 kB / 391.5 MB, free: 3.062 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000354/0.2718, allocations: 134.2 kB / 391.6 MB, free: 3.008 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009724/0.2728, allocations: 238.8 kB / 391.9 MB, free: 3 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003406/0.2762, allocations: 4.981 MB / 396.9 MB, free: 14.21 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007043/0.2769, allocations: 42.2 kB / 396.9 MB, free: 14.19 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.671e-05/0.277, allocations: 39.78 kB / 396.9 MB, free: 14.18 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 4 (cActuator.armature.stopper_xMin.contact,cActuator.armature.stopper_xMax.contact,pmActuator.armature.stopper_xMin.contact,pmActuator.armature.stopper_xMax.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (132): * Single equations (assignments): 129 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,4,100.0%), (1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004515/0.2775, allocations: 292.1 kB / 397.2 MB, free: 13.96 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001743/0.2777, allocations: 91.97 kB / 397.3 MB, free: 13.92 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001451/0.2791, allocations: 0.7534 MB / 398.1 MB, free: 13.47 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-05/0.2791, allocations: 12.53 kB / 398.1 MB, free: 13.47 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.173e-05/0.2792, allocations: 3.031 kB / 398.1 MB, free: 13.47 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.309e-05/0.2792, allocations: 3.984 kB / 398.1 MB, free: 13.46 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003849/0.283, allocations: 2.622 MB / 400.7 MB, free: 11.62 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.622e-06/0.2831, allocations: 3.984 kB / 400.7 MB, free: 11.62 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007937/0.2839, allocations: 197.4 kB / 400.9 MB, free: 11.59 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004078/0.2843, allocations: 167.5 kB / 401.1 MB, free: 11.48 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.383e-05/0.2844, allocations: 27.88 kB / 401.1 MB, free: 11.46 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004135/0.2885, allocations: 5.986 MB / 407.1 MB, free: 5.43 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.2885, allocations: 0 / 407.1 MB, free: 5.43 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002668/0.2912, allocations: 1.665 MB / 408.7 MB, free: 4.457 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004057/0.2916, allocations: 251 kB / 409 MB, free: 4.223 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001236/0.2917, allocations: 26.41 kB / 409 MB, free: 4.203 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005504/0.2923, allocations: 36.81 kB / 409.1 MB, free: 4.184 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001488/0.2925, allocations: 82.3 kB / 409.1 MB, free: 4.141 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.491e-05/0.2925, allocations: 29.03 kB / 409.2 MB, free: 4.133 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.00054/0.2931, allocations: 465.5 kB / 409.6 MB, free: 3.867 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2931, allocations: 0 / 409.6 MB, free: 3.867 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009432/0.294, allocations: 266.4 kB / 409.9 MB, free: 3.824 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (cActuator.x,cActuator.armature.stopper_xMin.v_rel,cActuator.l.i,pmActuator.x,pmActuator.armature.stopper_xMin.v_rel,pmActuator.coil.Phi) * Number of discrete variables: 4 (cActuator.armature.stopper_xMax.contact,cActuator.armature.stopper_xMin.contact,pmActuator.armature.stopper_xMax.contact,pmActuator.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (108): * Single equations (assignments): 104 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,2,100.0%), (1,2,100.0%), (1,3,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002843/0.2969, allocations: 2.234 MB / 412.1 MB, free: 1.578 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002566/0.2994, allocations: 1.331 MB / 413.4 MB, free: 240 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/0.2995, allocations: 64 / 413.4 MB, free: 240 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001278/0.3008, allocations: 0.9731 MB / 414.4 MB, free: 15.23 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001052/0.3018, allocations: 201.2 kB / 414.6 MB, free: 15.04 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01211/0.3139, allocations: 8.7 MB / 423.3 MB, free: 6.121 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005881/0.3146, allocations: 1.04 MB / 424.4 MB, free: 5.051 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0005589/0.3151, allocations: 127.9 kB / 424.5 MB, free: 4.922 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005161/0.3156, allocations: 399.3 kB / 424.9 MB, free: 4.531 MB / 334.1 MB Notification: Performance of SimCode: time 4.2e-07/0.3157, allocations: 4 kB / 424.9 MB, free: 4.527 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05888/0.3745, allocations: 21.1 MB / 446 MB, free: 15.73 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.485/9.859, allocations: 11.19 kB / 446 MB, free: 15.72 MB / 366.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke_res.csv --start-time 0 --stop-time 0.05 --timeout 50 --relative-tolerance 1e-07 --interface-type ModelExchange --solver CVode --output-interval 2e-05 Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke.fmu > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/MovingCoilActuator/ArmatureStroke/ArmatureStroke.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches