Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.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.ComparisonPullInStroke,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke",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.001088/0.001088, allocations: 108.3 kB / 16.92 MB, free: 6.145 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.001082/0.001082, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.273/1.273, allocations: 222.9 MB / 241.5 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001178/0.001178, allocations: 43.28 kB / 300.7 MB, free: 5.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09452/0.09573, allocations: 49.44 MB / 350.2 MB, free: 4.309 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.01153/0.1073, allocations: 11.09 MB / 361.3 MB, free: 9.164 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006672/0.114, allocations: 3.647 MB / 364.9 MB, free: 5.504 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002398/0.1164, allocations: 39.88 kB / 364.9 MB, free: 5.465 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1621/0.2786, allocations: 8.128 MB / 373.1 MB, free: 13.21 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006772/0.2854, allocations: 4.62 MB / 377.7 MB, free: 13.15 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002398/0.2878, allocations: 0.9509 MB / 378.6 MB, free: 13.13 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007118/0.295, allocations: 5.291 MB / 383.9 MB, free: 12.32 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00131/0.2963, allocations: 0.8907 MB / 384.8 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004233/0.3006, allocations: 2.859 MB / 387.7 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004693/0.3053, allocations: 5.122 MB / 392.8 MB, free: 8.336 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005836/0.3059, allocations: 348 kB / 393.1 MB, free: 7.996 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008153/0.3067, allocations: 392.8 kB / 393.5 MB, free: 7.613 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007743/0.3075, allocations: 1.87 MB / 395.4 MB, free: 5.738 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001676/0.3092, allocations: 2.795 MB / 398.2 MB, free: 2.93 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004483/0.3136, allocations: 7.145 MB / 405.3 MB, free: 12 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.3137, allocations: 3.062 kB / 405.3 MB, free: 12 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3137, allocations: 0 / 405.3 MB, free: 12 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001243/0.3138, allocations: 0 / 405.3 MB, free: 12 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 528 * Number of variables: 528 Notification: Performance of Generate backend data structure: time 0.0107/0.3245, allocations: 7.642 MB / 413 MB, free: 4.273 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.384e-05/0.3246, allocations: 15.97 kB / 413 MB, free: 4.258 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000323/0.3249, allocations: 283.6 kB / 413.3 MB, free: 3.969 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008818/0.3258, allocations: 0.8571 MB / 414.1 MB, free: 3.102 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003537/0.3293, allocations: 3.153 MB / 417.3 MB, free: 64 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001399/0.3295, allocations: 161.1 kB / 417.4 MB, free: 15.91 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002713/0.3298, allocations: 203.9 kB / 417.6 MB, free: 15.71 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003568/0.3333, allocations: 2.112 MB / 419.8 MB, free: 13.53 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.978e-05/0.3334, allocations: 3.938 kB / 419.8 MB, free: 13.52 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001797/0.3336, allocations: 91.98 kB / 419.8 MB, free: 13.43 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.556e-05/0.3336, allocations: 48 kB / 419.9 MB, free: 13.39 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003728/0.3374, allocations: 1.891 MB / 421.8 MB, free: 11.49 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01464/0.352, allocations: 8.944 MB / 430.7 MB, free: 2.43 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003746/0.3558, allocations: 2.323 MB / 433.1 MB, free: 40 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002596/0.3584, allocations: 1.391 MB / 434.4 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001207/0.3586, allocations: 48.8 kB / 434.5 MB, free: 14.6 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002043/0.3606, allocations: 1.156 MB / 435.6 MB, free: 13.41 MB / 350.1 MB Notification: Performance of pre-optimization done (n=242): time 3.997e-06/0.3607, allocations: 4 kB / 435.6 MB, free: 13.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=367): time 0.06477/0.4254, allocations: 22.8 MB / 458.5 MB, free: 6.34 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02817/0.4536, allocations: 13.63 MB / 472.1 MB, free: 8.363 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01612/0.4698, allocations: 14.89 MB / 487 MB, free: 9.535 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005181/0.4703, allocations: 85.7 kB / 487.1 MB, free: 9.445 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00307/0.4734, allocations: 3.724 MB / 490.8 MB, free: 5.715 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001242/0.4747, allocations: 1.211 MB / 492 MB, free: 4.516 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009002/0.4756, allocations: 0.5156 MB / 492.5 MB, free: 3.992 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 8.487e-05/0.4757, allocations: 305.2 kB / 492.8 MB, free: 3.691 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002479/0.4782, allocations: 1.252 MB / 494.1 MB, free: 2.438 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002681/0.4809, allocations: 1.626 MB / 495.7 MB, free: 0.7305 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005127/0.486, allocations: 2.986 MB / 498.7 MB, free: 13.68 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.672e-06/0.486, allocations: 0 / 498.7 MB, free: 13.68 MB / 414.1 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.01222/0.4983, allocations: 5.218 MB / 0.4921 GB, free: 8.414 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.377e-05/0.4984, allocations: 8 kB / 0.4921 GB, free: 8.406 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.703e-05/0.4984, allocations: 4 kB / 0.4921 GB, free: 8.402 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005319/0.5037, allocations: 1.397 MB / 0.4935 GB, free: 6.977 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003215/0.507, allocations: 0.546 MB / 0.494 GB, free: 6.43 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02918/0.5362, allocations: 23.97 MB / 0.5174 GB, free: 13.23 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003205/0.5394, allocations: 135.9 kB / 0.5175 GB, free: 13.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003316/0.5398, allocations: 112 kB / 0.5176 GB, free: 12.99 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.comparisonWithFEA.nextTimeEvent,$whenCondition1,comparisonWithFEA.nextTimeEventScaled,$PRE.comparisonWithFEA.nextTimeEventScaled,comparisonWithFEA.nextTimeEvent,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 (309): * Single equations (assignments): 300 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 7 systems {(1,3,100.0%), (1,3,100.0%), (1,4,100.0%), (1,4,100.0%), (1,3,100.0%), (1,5,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,43), (3,50)} Notification: Performance of prepare postOptimizeDAE: time 0.003204/0.543, allocations: 2.191 MB / 0.5198 GB, free: 10.79 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001161/0.5441, allocations: 0.8175 MB / 0.5206 GB, free: 9.965 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01167/0.5558, allocations: 5.222 MB / 0.5257 GB, free: 4.695 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.519e-05/0.5559, allocations: 36 kB / 0.5257 GB, free: 4.66 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.989e-05/0.5559, allocations: 4.141 kB / 0.5257 GB, free: 4.656 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.37e-05/0.556, allocations: 31.84 kB / 0.5257 GB, free: 4.625 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1849/0.7409, allocations: 11.07 MB / 0.5365 GB, free: 143.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.86e-05/0.741, allocations: 3.422 kB / 0.5365 GB, free: 143.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002529/0.7435, allocations: 459.8 kB / 0.537 GB, free: 143.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005578/0.7491, allocations: 1.343 MB / 0.5383 GB, free: 143.8 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003897/0.7495, allocations: 80.12 kB / 0.5384 GB, free: 143.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.021/0.7705, allocations: 21.86 MB / 0.5597 GB, free: 126.9 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02096/0.7915, allocations: 11.94 MB / 0.5714 GB, free: 120 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01167/0.8032, allocations: 6.948 MB / 0.5782 GB, free: 117.2 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00109/0.8043, allocations: 0.7437 MB / 0.5789 GB, free: 116.8 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005178/0.8049, allocations: 69.19 kB / 0.579 GB, free: 116.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001898/0.8068, allocations: 113.2 kB / 0.5791 GB, free: 116.7 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006328/0.8074, allocations: 271 kB / 0.5793 GB, free: 116.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001643/0.8076, allocations: 90.75 kB / 0.5794 GB, free: 116.4 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.008522/0.8161, allocations: 11.12 MB / 0.5903 GB, free: 105.9 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.8161, allocations: 0 / 0.5903 GB, free: 105.9 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003539/0.8197, allocations: 1.077 MB / 0.5913 GB, free: 104.8 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 9 (advancedSolenoid.x,advancedSolenoid.coil1.i,advancedSolenoid.armature.stopper_xMin.v_rel,advancedSolenoid.coil2.i,advancedSolenoid.c_par1.v,advancedSolenoid.c_par2.v,$STATESET1.x,simpleSolenoid.x,simpleSolenoid.armature.stopper_xMin.v_rel) * Number of discrete variables: 7 (advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact,$whenCondition1,comparisonWithFEA.nextTimeEvent,comparisonWithFEA.nextTimeEventScaled) * Number of discrete states: 2 (comparisonWithFEA.nextTimeEventScaled,comparisonWithFEA.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (253): * Single equations (assignments): 242 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 7 systems {(1,2,100.0%), (1,2,100.0%), (1,4,100.0%), (1,5,100.0%), (1,3,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(3,49), (4,42)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01182/0.8315, allocations: 7.939 MB / 0.5991 GB, free: 96.96 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.009555/0.8411, allocations: 4.917 MB / 0.6039 GB, free: 91.96 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.498e-06/0.8411, allocations: 0 / 0.6039 GB, free: 91.96 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003851/0.845, allocations: 3.295 MB / 0.6071 GB, free: 88.55 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002591/0.8476, allocations: 0.5424 MB / 0.6076 GB, free: 88.02 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08047/0.928, allocations: 88.11 MB / 0.6937 GB, free: 9.742 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003592/0.9317, allocations: 4.012 MB / 0.6976 GB, free: 5.688 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001718/0.9334, allocations: 308.9 kB / 0.6979 GB, free: 5.383 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00308/0.9365, allocations: 3.217 MB / 0.701 GB, free: 2.164 MB / 462.1 MB Notification: Performance of SimCode: time 9.21e-07/0.9365, allocations: 0 / 0.701 GB, free: 2.164 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.116/5.052, allocations: 139.5 MB / 0.8372 GB, free: 41.52 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.32/22.37, allocations: 14.2 kB / 0.8373 GB, free: 41.52 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-07 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe 2>&1)