Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStatic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStatic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001839/0.001839, allocations: 109.5 kB / 16.92 MB, free: 5.777 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002553/0.002553, allocations: 191.3 kB / 17.85 MB, free: 5.168 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.2/2.2, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002006/0.002006, allocations: 55.23 kB / 300.7 MB, free: 5.766 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1591/0.1611, allocations: 49.45 MB / 350.2 MB, free: 4.312 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic): time 0.0243/0.1855, allocations: 11.09 MB / 361.3 MB, free: 9.176 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01315/0.1987, allocations: 3.292 MB / 364.5 MB, free: 5.871 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004141/0.2029, allocations: 39.88 kB / 364.6 MB, free: 5.832 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003449/0.2064, allocations: 0.6832 MB / 365.3 MB, free: 5.145 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00645/0.2129, allocations: 0.8842 MB / 366.2 MB, free: 4.254 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004482/0.2175, allocations: 0.9362 MB / 367.1 MB, free: 3.316 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.3361/0.5536, allocations: 3.428 MB / 370.5 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003889/0.5575, allocations: 0.8887 MB / 371.4 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004791/0.5624, allocations: 1.281 MB / 372.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004753/0.5672, allocations: 1.512 MB / 374.2 MB, free: 9.945 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002076/0.5693, allocations: 349 kB / 374.5 MB, free: 9.945 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002582/0.5719, allocations: 378 kB / 374.9 MB, free: 9.945 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001992/0.5739, allocations: 0.7148 MB / 375.6 MB, free: 9.84 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004907/0.5789, allocations: 1.479 MB / 377.1 MB, free: 9.43 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009564/0.5885, allocations: 4.226 MB / 381.3 MB, free: 8.898 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.14e-05/0.5886, allocations: 0 / 381.3 MB, free: 8.898 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.487e-06/0.5886, allocations: 0.5625 kB / 381.3 MB, free: 8.898 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002067/0.5888, allocations: 2.25 kB / 381.3 MB, free: 8.898 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: 527 * Number of variables: 527 Notification: Performance of Generate backend data structure: time 0.02008/0.6089, allocations: 3.125 MB / 384.5 MB, free: 7.109 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.739e-05/0.6091, allocations: 17.84 kB / 384.5 MB, free: 7.105 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001842/0.6109, allocations: 287.2 kB / 384.8 MB, free: 6.926 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002275/0.6132, allocations: 292.1 kB / 385 MB, free: 6.777 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0078/0.6211, allocations: 1.382 MB / 386.4 MB, free: 5.953 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003905/0.6215, allocations: 157.6 kB / 386.6 MB, free: 5.879 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001366/0.6229, allocations: 205.7 kB / 386.8 MB, free: 5.812 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01024/0.6332, allocations: 1.896 MB / 388.7 MB, free: 4.797 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001549/0.6334, allocations: 6.031 kB / 388.7 MB, free: 4.793 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007058/0.6341, allocations: 81.84 kB / 388.8 MB, free: 4.73 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001088/0.6342, allocations: 49.53 kB / 388.8 MB, free: 4.73 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009424/0.6437, allocations: 1.91 MB / 390.7 MB, free: 3.777 MB / 302.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02979/0.6735, allocations: 7.45 MB / 398.2 MB, free: 14.19 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008045/0.6816, allocations: 2.276 MB / 400.4 MB, free: 12.88 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006122/0.6878, allocations: 1.375 MB / 401.8 MB, free: 12.24 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003371/0.6882, allocations: 38.31 kB / 401.9 MB, free: 12.23 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001148/0.6884, allocations: 57 kB / 401.9 MB, free: 12.18 MB / 318.1 MB Notification: Performance of pre-optimization done (n=234): time 1.178e-05/0.6884, allocations: 0 / 401.9 MB, free: 12.18 MB / 318.1 MB Notification: Performance of matching and sorting (n=351): time 0.08853/0.777, allocations: 17.58 MB / 419.5 MB, free: 11.02 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.077e-05/0.7771, allocations: 90.17 kB / 419.6 MB, free: 10.92 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004671/0.7818, allocations: 1.84 MB / 421.4 MB, free: 9.078 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007437/0.7826, allocations: 81.7 kB / 421.5 MB, free: 8.992 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001156/0.7837, allocations: 0.9831 MB / 422.5 MB, free: 8.004 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001669/0.7854, allocations: 1.161 MB / 423.6 MB, free: 6.855 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001812/0.7872, allocations: 499.4 kB / 424.1 MB, free: 6.359 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002272/0.7875, allocations: 301.1 kB / 424.4 MB, free: 6.062 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003416/0.7909, allocations: 1.221 MB / 425.6 MB, free: 4.84 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00365/0.7946, allocations: 1.524 MB / 427.2 MB, free: 3.258 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009812/0.8044, allocations: 2.882 MB / 430.1 MB, free: 320 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.959e-05/0.8045, allocations: 0 / 430.1 MB, free: 320 kB / 334.1 MB Notification: Performance of matching and sorting (n=412) (initialization): time 0.01417/0.8187, allocations: 4.442 MB / 434.5 MB, free: 11.9 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.874e-05/0.8188, allocations: 12 kB / 434.5 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.231e-05/0.8188, allocations: 4 kB / 434.5 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006136/0.8249, allocations: 1.338 MB / 435.9 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00322/0.8282, allocations: 0.528 MB / 436.4 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03445/0.8627, allocations: 20.6 MB / 457 MB, free: 4.535 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003553/0.8663, allocations: 107.9 kB / 457.1 MB, free: 4.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008492/0.8671, allocations: 108 kB / 457.2 MB, free: 4.324 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 4 (simpleSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,advancedSolenoid.armature.stopper_xMax.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (298): * Single equations (assignments): 291 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,4,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(3,50), (2,43)} Notification: Performance of prepare postOptimizeDAE: time 0.002552/0.8697, allocations: 0.5769 MB / 457.8 MB, free: 3.766 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001456/0.8712, allocations: 256.8 kB / 458 MB, free: 3.512 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01695/0.8882, allocations: 4.396 MB / 462.4 MB, free: 15.11 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.297e-05/0.8883, allocations: 32 kB / 462.4 MB, free: 15.08 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.093e-05/0.8883, allocations: 7.938 kB / 462.5 MB, free: 15.07 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.398e-05/0.8884, allocations: 15.94 kB / 462.5 MB, free: 15.05 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02596/0.9144, allocations: 8.407 MB / 470.9 MB, free: 6.621 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.27e-05/0.9144, allocations: 8 kB / 470.9 MB, free: 6.613 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00297/0.9174, allocations: 460.7 kB / 471.3 MB, free: 6.188 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006533/0.924, allocations: 1.265 MB / 472.6 MB, free: 4.906 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000744/0.9248, allocations: 79.92 kB / 472.7 MB, free: 4.828 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03532/0.9601, allocations: 19.19 MB / 491.9 MB, free: 0.7383 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.855e-06/0.9602, allocations: 3.281 kB / 491.9 MB, free: 0.7383 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02068/0.9809, allocations: 6.093 MB / 498 MB, free: 10.58 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003686/0.9846, allocations: 0.6187 MB / 498.6 MB, free: 9.941 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001673/0.9864, allocations: 56 kB / 498.6 MB, free: 9.887 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004414/0.9908, allocations: 111.9 kB / 498.7 MB, free: 9.777 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002063/0.9929, allocations: 257.9 kB / 499 MB, free: 9.527 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009338/0.9939, allocations: 87.98 kB / 499.1 MB, free: 9.441 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.005067/0.999, allocations: 1.286 MB / 0.4886 GB, free: 8.164 MB / 414.1 MB Notification: Performance of sort global known variables: time 6.41e-07/0.9991, allocations: 0 / 0.4886 GB, free: 8.164 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.01008/1.009, allocations: 0.8711 MB / 0.4895 GB, free: 7.293 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 9 (advancedSolenoid.coil1.i,advancedSolenoid.coil2.i,advancedSolenoid.c_par1.v,advancedSolenoid.c_par2.v,advancedFeed_x.s,advancedFeed_x.v,simpleSolenoid.coil.i,simpleFeed_x.s,simpleFeed_x.v) * Number of discrete variables: 4 (advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (243): * Single equations (assignments): 236 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,3,100.0%), (1,2,100.0%), (1,2,100.0%), (1,4,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(3,41), (3,49)} Notification: Performance of Backend phase and start with SimCode phase: time 0.03003/1.039, allocations: 7.01 MB / 0.4963 GB, free: 388 kB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.03378/1.073, allocations: 4.601 MB / 0.5008 GB, free: 11.73 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-05/1.073, allocations: 320 / 0.5008 GB, free: 11.73 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01194/1.085, allocations: 2.973 MB / 0.5037 GB, free: 8.711 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006562/1.092, allocations: 380.7 kB / 0.5041 GB, free: 8.344 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3168/1.409, allocations: 27.06 MB / 0.5305 GB, free: 149 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002092/1.411, allocations: 1.708 MB / 0.5322 GB, free: 148.3 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002798/1.414, allocations: 289.4 kB / 0.5325 GB, free: 148.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001973/1.416, allocations: 1.044 MB / 0.5335 GB, free: 148.2 MB / 446.1 MB Notification: Performance of SimCode: time 1.703e-06/1.416, allocations: 0.875 kB / 0.5335 GB, free: 148.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1598/1.575, allocations: 74.74 MB / 0.6065 GB, free: 89.51 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 23.14/24.71, allocations: 448 / 0.6065 GB, free: 89.51 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-07 --interface-type ModelExchange --solver CVode --output-interval 0.004 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStatic.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/SolenoidActuator/ComparisonQuasiStatic/ComparisonQuasiStatic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches