Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00127/0.00127, allocations: 87.62 kB / 21.43 MB, free: 3.129 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.009308/0.009308, allocations: 165.5 kB / 24.69 MB, free: 9.43 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8822/0.8822, allocations: 158.6 MB / 186.5 MB, free: 3.039 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStationary",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStationary",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.763e-06/1.763e-06, allocations: 0 / 298.4 MB, free: 3.531 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.461e-05/1.637e-05, allocations: 2.281 kB / 298.4 MB, free: 3.527 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary): time 0.1413/0.1413, allocations: 9.506 MB / 307.9 MB, free: 10.56 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.004077/0.1454, allocations: 3.166 MB / 311.1 MB, free: 8.449 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006406/0.146, allocations: 46.56 kB / 311.1 MB, free: 8.434 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000829/0.1469, allocations: 0.683 MB / 311.8 MB, free: 8.18 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001202/0.1481, allocations: 0.95 MB / 312.8 MB, free: 7.578 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001111/0.1492, allocations: 0.9288 MB / 313.7 MB, free: 6.98 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.002223/0.1514, allocations: 3.558 MB / 317.3 MB, free: 5.09 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006226/0.152, allocations: 0.552 MB / 317.8 MB, free: 4.781 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001748/0.1538, allocations: 1.962 MB / 319.8 MB, free: 3.836 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001056/0.1548, allocations: 1.196 MB / 321 MB, free: 3.438 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003878/0.1552, allocations: 350.3 kB / 321.3 MB, free: 3.438 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004653/0.1557, allocations: 378.2 kB / 321.7 MB, free: 3.43 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003504/0.156, allocations: 0.7291 MB / 322.4 MB, free: 2.828 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006713/0.1567, allocations: 1 MB / 323.4 MB, free: 2.203 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002392/0.1591, allocations: 4.387 MB / 327.8 MB, free: 14.75 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.1591, allocations: 0.875 kB / 327.8 MB, free: 14.75 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.302e-06/0.1591, allocations: 0 / 327.8 MB, free: 14.75 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.806e-05/0.1592, allocations: 2.875 kB / 327.8 MB, free: 14.75 MB / 298.7 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.00414/0.1633, allocations: 3.093 MB / 330.9 MB, free: 12.59 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.055e-05/0.1633, allocations: 14.11 kB / 330.9 MB, free: 12.58 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002622/0.1636, allocations: 290.5 kB / 331.2 MB, free: 12.35 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003163/0.1639, allocations: 310.1 kB / 331.5 MB, free: 12.19 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001627/0.1655, allocations: 1.349 MB / 332.9 MB, free: 11.13 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.784e-05/0.1656, allocations: 157.2 kB / 333 MB, free: 11.06 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001912/0.1658, allocations: 207.1 kB / 333.2 MB, free: 10.99 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002469/0.1683, allocations: 2.018 MB / 335.2 MB, free: 9.707 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.61e-05/0.1683, allocations: 5.375 kB / 335.2 MB, free: 9.703 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001305/0.1685, allocations: 81.88 kB / 335.3 MB, free: 9.641 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.014e-05/0.1685, allocations: 49.5 kB / 335.4 MB, free: 9.641 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002558/0.171, allocations: 1.9 MB / 337.3 MB, free: 7.73 MB / 298.7 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.007349/0.1784, allocations: 6.121 MB / 343.4 MB, free: 1.453 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002396/0.1808, allocations: 1.983 MB / 345.4 MB, free: 15.47 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001705/0.1825, allocations: 1.303 MB / 346.7 MB, free: 14.17 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.767e-05/0.1826, allocations: 33.98 kB / 346.7 MB, free: 14.14 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.353e-05/0.1826, allocations: 64.56 kB / 346.8 MB, free: 14.07 MB / 314.7 MB Notification: Performance of pre-optimization done (n=234): time 4.138e-06/0.1826, allocations: 0 / 346.8 MB, free: 14.07 MB / 314.7 MB Notification: Performance of matching and sorting (n=351): time 0.0323/0.2149, allocations: 17.13 MB / 363.9 MB, free: 12.84 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.012e-05/0.215, allocations: 94.11 kB / 364 MB, free: 12.74 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001886/0.2169, allocations: 1.863 MB / 365.9 MB, free: 10.87 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001411/0.217, allocations: 85.7 kB / 365.9 MB, free: 10.78 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004912/0.2175, allocations: 0.991 MB / 366.9 MB, free: 9.781 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005934/0.2181, allocations: 1.2 MB / 368.1 MB, free: 8.57 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005796/0.2187, allocations: 499.5 kB / 368.6 MB, free: 8.074 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.719e-05/0.2187, allocations: 301.1 kB / 368.9 MB, free: 7.777 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001566/0.2203, allocations: 1.221 MB / 370.1 MB, free: 6.555 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001738/0.222, allocations: 1.533 MB / 371.7 MB, free: 4.961 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003721/0.2258, allocations: 2.878 MB / 374.5 MB, free: 2.004 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.663e-06/0.2258, allocations: 4 kB / 374.5 MB, free: 2 MB / 330.7 MB Notification: Performance of matching and sorting (n=412) (initialization): time 0.006236/0.232, allocations: 4.417 MB / 379 MB, free: 13.53 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.706e-05/0.232, allocations: 7.984 kB / 379 MB, free: 13.52 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.578e-05/0.232, allocations: 4 kB / 379 MB, free: 13.52 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00302/0.2351, allocations: 1.327 MB / 380.3 MB, free: 12.18 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001327/0.2364, allocations: 0.5188 MB / 380.8 MB, free: 11.66 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01719/0.2536, allocations: 19.55 MB / 400.4 MB, free: 7.297 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00149/0.2551, allocations: 108 kB / 400.5 MB, free: 7.191 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001567/0.2552, allocations: 112 kB / 400.6 MB, free: 7.082 MB / 362.7 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.00137/0.2566, allocations: 0.5834 MB / 401.2 MB, free: 6.488 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002994/0.2569, allocations: 266.3 kB / 401.4 MB, free: 6.227 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005931/0.2628, allocations: 4.353 MB / 405.8 MB, free: 1.805 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.571e-05/0.2628, allocations: 36 kB / 405.8 MB, free: 1.77 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/0.2629, allocations: 4 kB / 405.8 MB, free: 1.766 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.755e-05/0.2629, allocations: 15.94 kB / 405.8 MB, free: 1.75 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01002/0.2729, allocations: 7.556 MB / 413.4 MB, free: 10.06 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.786e-06/0.2729, allocations: 4 kB / 413.4 MB, free: 10.06 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001205/0.2741, allocations: 459.6 kB / 413.8 MB, free: 9.609 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002565/0.2767, allocations: 1.256 MB / 415.1 MB, free: 8.336 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001428/0.2768, allocations: 63.98 kB / 415.2 MB, free: 8.273 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0161/0.2929, allocations: 18.16 MB / 433.3 MB, free: 5.309 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/0.2929, allocations: 7.938 kB / 433.3 MB, free: 5.301 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008268/0.3012, allocations: 6.063 MB / 439.4 MB, free: 15.12 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009094/0.3021, allocations: 0.5449 MB / 439.9 MB, free: 14.57 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002116/0.3023, allocations: 64 kB / 440 MB, free: 14.51 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008372/0.3031, allocations: 111.9 kB / 440.1 MB, free: 14.4 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004073/0.3035, allocations: 274.6 kB / 440.4 MB, free: 14.12 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001224/0.3037, allocations: 87.92 kB / 440.5 MB, free: 14.04 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001513/0.3052, allocations: 1.29 MB / 441.7 MB, free: 12.76 MB / 410.7 MB Notification: Performance of sort global known variables: time 9e-08/0.3052, allocations: 4 kB / 441.8 MB, free: 12.75 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001947/0.3071, allocations: 0.8633 MB / 442.6 MB, free: 11.89 MB / 410.7 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.00902/0.3161, allocations: 6.986 MB / 449.6 MB, free: 4.781 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005036/0.3212, allocations: 4.281 MB / 453.9 MB, free: 400 kB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.489e-06/0.3212, allocations: 0 / 453.9 MB, free: 400 kB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003094/0.3243, allocations: 2.841 MB / 456.7 MB, free: 13.45 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001259/0.3255, allocations: 381.6 kB / 457.1 MB, free: 13.07 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1577/0.4832, allocations: 23.43 MB / 480.5 MB, free: 136.2 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001147/0.4844, allocations: 1.145 MB / 481.7 MB, free: 136 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001154/0.4855, allocations: 289.5 kB / 482 MB, free: 136 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00108/0.4866, allocations: 1.047 MB / 483 MB, free: 135.2 MB / 426.7 MB Notification: Performance of SimCode: time 1.994e-06/0.4866, allocations: 1.125 kB / 483 MB, free: 135.2 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08076/0.5674, allocations: 77.85 MB / 0.5477 GB, free: 69.92 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.57/11.14, allocations: 6.766 kB / 0.5477 GB, free: 69.91 MB / 426.7 MB " [Timeout remaining time 649] (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStationary_fmu --startTime=0 --stopTime=10 --stepSize=0.0019992 --timeout=50 --tolerance=1e-07 Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStationary.fmu > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FluxTubes/Examples/SolenoidActuator/ComparisonQuasiStationary/ComparisonQuasiStationary.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.41379801183939]