Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.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.SolenoidActuator.ComparisonPullInStroke,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001091/0.001091, allocations: 104.1 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.001225/0.001225, allocations: 214.4 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.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001206/0.001206, allocations: 60.38 kB / 307.1 MB, free: 0.5156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08742/0.08864, allocations: 50.53 MB / 357.6 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.01241/0.1011, allocations: 11.38 MB / 369 MB, free: 2.543 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1515/0.2526, allocations: 3.853 MB / 372.8 MB, free: 9.074 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002278/0.2549, allocations: 38.81 kB / 372.9 MB, free: 9.074 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009186/0.2642, allocations: 8.15 MB / 381 MB, free: 8.422 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005903/0.2701, allocations: 4.711 MB / 385.7 MB, free: 6.668 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00211/0.2722, allocations: 0.9156 MB / 386.6 MB, free: 6.41 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005637/0.2779, allocations: 5.399 MB / 392 MB, free: 4.617 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00116/0.2791, allocations: 0.903 MB / 392.9 MB, free: 4.133 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003915/0.283, allocations: 2.895 MB / 395.8 MB, free: 2.035 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005412/0.2884, allocations: 5.173 MB / 401 MB, free: 12.98 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008307/0.2893, allocations: 356 kB / 401.4 MB, free: 12.63 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001033/0.2903, allocations: 410.8 kB / 401.8 MB, free: 12.23 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001338/0.2917, allocations: 1.879 MB / 403.6 MB, free: 10.35 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002426/0.2941, allocations: 2.841 MB / 406.5 MB, free: 7.492 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005297/0.2994, allocations: 7.293 MB / 413.8 MB, free: 436 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.2994, allocations: 0 / 413.8 MB, free: 436 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.2994, allocations: 0 / 413.8 MB, free: 436 kB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001124/0.2996, allocations: 0 / 413.8 MB, free: 436 kB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 532 * Number of variables: 532 Notification: Performance of Generate backend data structure: time 0.01075/0.3103, allocations: 7.735 MB / 421.5 MB, free: 8.59 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.107e-05/0.3104, allocations: 12.03 kB / 421.5 MB, free: 8.578 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003485/0.3107, allocations: 291.7 kB / 421.8 MB, free: 8.281 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001505/0.3122, allocations: 0.9039 MB / 422.7 MB, free: 7.367 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003787/0.316, allocations: 3.218 MB / 425.9 MB, free: 4.27 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001207/0.3162, allocations: 160.2 kB / 426.1 MB, free: 4.109 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002798/0.3165, allocations: 200 kB / 426.3 MB, free: 3.914 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003501/0.32, allocations: 2.093 MB / 428.4 MB, free: 1.754 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.6e-05/0.32, allocations: 3.906 kB / 428.4 MB, free: 1.75 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001833/0.3202, allocations: 88 kB / 428.5 MB, free: 1.664 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.814e-05/0.3203, allocations: 48 kB / 428.5 MB, free: 1.617 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003476/0.3237, allocations: 1.855 MB / 430.4 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01301/0.3368, allocations: 9.014 MB / 439.4 MB, free: 6.629 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003549/0.3404, allocations: 2.325 MB / 441.7 MB, free: 4.246 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002457/0.3428, allocations: 1.352 MB / 443.1 MB, free: 2.891 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001274/0.343, allocations: 45.8 kB / 443.1 MB, free: 2.848 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00193/0.3449, allocations: 1.128 MB / 444.2 MB, free: 1.684 MB / 350.1 MB Notification: Performance of pre-optimization done (n=246): time 4.448e-06/0.3449, allocations: 0 / 444.2 MB, free: 1.684 MB / 350.1 MB Notification: Performance of matching and sorting (n=371): time 0.06306/0.408, allocations: 22.45 MB / 466.7 MB, free: 10.94 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02964/0.4377, allocations: 13.71 MB / 480.4 MB, free: 12.88 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.016/0.4537, allocations: 15.04 MB / 495.4 MB, free: 13.84 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005909/0.4543, allocations: 85.77 kB / 495.5 MB, free: 13.75 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003287/0.4576, allocations: 3.783 MB / 499.3 MB, free: 9.961 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00129/0.4589, allocations: 1.217 MB / 0.4888 GB, free: 8.754 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009429/0.4599, allocations: 0.5196 MB / 0.4893 GB, free: 8.227 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.866e-05/0.46, allocations: 309.1 kB / 0.4896 GB, free: 7.922 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002315/0.4623, allocations: 1.225 MB / 0.4908 GB, free: 6.695 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002565/0.4649, allocations: 1.603 MB / 0.4923 GB, free: 5.012 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004903/0.4698, allocations: 2.972 MB / 0.4952 GB, free: 1.977 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.793e-06/0.4698, allocations: 4 kB / 0.4952 GB, free: 1.973 MB / 414.1 MB Notification: Performance of matching and sorting (n=435) (initialization): time 0.0108/0.4806, allocations: 5.198 MB / 0.5003 GB, free: 12.73 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.744e-05/0.4807, allocations: 8 kB / 0.5003 GB, free: 12.72 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.618e-05/0.4807, allocations: 7.938 kB / 0.5003 GB, free: 12.71 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005505/0.4862, allocations: 1.42 MB / 0.5017 GB, free: 11.27 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002582/0.4888, allocations: 0.5344 MB / 0.5022 GB, free: 10.73 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0284/0.5172, allocations: 24.05 MB / 0.5257 GB, free: 1.449 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003264/0.5205, allocations: 119.8 kB / 0.5259 GB, free: 1.332 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003265/0.5209, allocations: 108 kB / 0.526 GB, free: 1.227 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 (313): * Single equations (assignments): 304 * 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,3,100.0%), (1,4,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.1462/0.6671, allocations: 2.193 MB / 0.5281 GB, free: 136.2 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001167/0.6683, allocations: 0.8241 MB / 0.5289 GB, free: 136.2 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01095/0.6792, allocations: 5.2 MB / 0.534 GB, free: 136 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.79e-05/0.6793, allocations: 34.09 kB / 0.534 GB, free: 136 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.011e-05/0.6793, allocations: 6.422 kB / 0.534 GB, free: 136 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.819e-05/0.6794, allocations: 25.89 kB / 0.534 GB, free: 135.9 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01903/0.6984, allocations: 11.12 MB / 0.5449 GB, free: 133.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.64e-05/0.6984, allocations: 2.25 kB / 0.5449 GB, free: 133.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002273/0.7007, allocations: 452.7 kB / 0.5453 GB, free: 133.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005234/0.706, allocations: 1.36 MB / 0.5467 GB, free: 133 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002819/0.7063, allocations: 75.14 kB / 0.5467 GB, free: 133 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02035/0.7266, allocations: 21.92 MB / 0.5681 GB, free: 115.6 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02228/0.7489, allocations: 12.03 MB / 0.5799 GB, free: 107.4 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01203/0.761, allocations: 6.905 MB / 0.5866 GB, free: 100.7 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001407/0.7624, allocations: 0.7676 MB / 0.5874 GB, free: 99.89 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006092/0.7631, allocations: 64.7 kB / 0.5874 GB, free: 99.83 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001992/0.7651, allocations: 103 kB / 0.5875 GB, free: 99.73 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006029/0.7657, allocations: 263.4 kB / 0.5878 GB, free: 99.47 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001674/0.7659, allocations: 95.97 kB / 0.5879 GB, free: 99.38 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.009014/0.7749, allocations: 11.23 MB / 0.5988 GB, free: 88.17 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.7749, allocations: 0 / 0.5988 GB, free: 88.17 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003547/0.7785, allocations: 1.102 MB / 0.5999 GB, free: 87.07 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 (257): * Single equations (assignments): 246 * 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.01225/0.7907, allocations: 7.879 MB / 0.6076 GB, free: 79.26 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0101/0.8009, allocations: 4.866 MB / 0.6124 GB, free: 74.3 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.8009, allocations: 0 / 0.6124 GB, free: 74.3 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00392/0.8048, allocations: 3.257 MB / 0.6156 GB, free: 70.94 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003057/0.8079, allocations: 0.58 MB / 0.6161 GB, free: 70.37 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.259/1.067, allocations: 89.59 MB / 0.7036 GB, free: 139.5 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005323/1.072, allocations: 4.047 MB / 0.7076 GB, free: 138.6 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002325/1.075, allocations: 317.2 kB / 0.7079 GB, free: 138.6 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003359/1.078, allocations: 3.281 MB / 0.7111 GB, free: 137.6 MB / 462.1 MB Notification: Performance of SimCode: time 9.31e-07/1.078, allocations: 2.656 kB / 0.7111 GB, free: 137.6 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2847/1.363, allocations: 141.6 MB / 0.8494 GB, free: 14.01 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.39/18.75, allocations: 16.31 kB / 0.8494 GB, free: 13.99 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke_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_SolenoidActuator_ComparisonPullInStroke.fmu > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/SolenoidActuator/ComparisonPullInStroke/ComparisonPullInStroke.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches