Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic.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.ComparisonQuasiStatic,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStatic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001642/0.001642, allocations: 122.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001865/0.001865, allocations: 202 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.414/1.414, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001173/0.001173, allocations: 55.91 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3005/0.3017, allocations: 50.54 MB / 408.8 MB, free: 1.516 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic): time 0.01163/0.3133, allocations: 11.4 MB / 420.2 MB, free: 6.062 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006631/0.32, allocations: 3.51 MB / 423.7 MB, free: 2.543 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001819/0.3218, allocations: 39.88 kB / 423.7 MB, free: 2.504 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001367/0.3233, allocations: 0.7026 MB / 424.4 MB, free: 1.797 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002606/0.3259, allocations: 0.997 MB / 425.4 MB, free: 0.793 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001828/0.3277, allocations: 0.9323 MB / 426.3 MB, free: 15.86 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003831/0.3316, allocations: 3.56 MB / 429.9 MB, free: 12.28 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001264/0.3328, allocations: 0.8986 MB / 430.8 MB, free: 11.35 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00185/0.3347, allocations: 1.331 MB / 432.1 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001806/0.3365, allocations: 1.56 MB / 433.7 MB, free: 8.449 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004638/0.337, allocations: 356 kB / 434 MB, free: 8.102 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005846/0.3376, allocations: 388 kB / 434.4 MB, free: 7.723 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005708/0.3382, allocations: 0.7359 MB / 435.2 MB, free: 6.984 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001387/0.3396, allocations: 1.528 MB / 436.7 MB, free: 5.449 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004562/0.3441, allocations: 4.424 MB / 441.1 MB, free: 1.012 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.3442, allocations: 0 / 441.1 MB, free: 1.012 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.3442, allocations: 0 / 441.1 MB, free: 1.012 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.981e-05/0.3443, allocations: 0 / 441.1 MB, free: 1.012 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 531 * Number of variables: 531 Notification: Performance of Generate backend data structure: time 0.007092/0.3513, allocations: 3.292 MB / 444.4 MB, free: 13.65 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.495e-05/0.3514, allocations: 8.031 kB / 444.4 MB, free: 13.64 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003393/0.3517, allocations: 295.7 kB / 444.7 MB, free: 13.34 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001007/0.3528, allocations: 366.9 kB / 445.1 MB, free: 12.98 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002584/0.3554, allocations: 1.491 MB / 446.5 MB, free: 11.44 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001194/0.3555, allocations: 156.2 kB / 446.7 MB, free: 11.28 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002995/0.3558, allocations: 208 kB / 446.9 MB, free: 11.08 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003611/0.3594, allocations: 1.874 MB / 448.8 MB, free: 9.148 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.377e-05/0.3595, allocations: 3.953 kB / 448.8 MB, free: 9.145 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001795/0.3597, allocations: 80 kB / 448.9 MB, free: 9.066 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.824e-05/0.3597, allocations: 52 kB / 448.9 MB, free: 9.016 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003568/0.3633, allocations: 1.863 MB / 450.8 MB, free: 7.137 MB / 366.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.0123/0.3756, allocations: 7.481 MB / 458.2 MB, free: 15.37 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003405/0.379, allocations: 2.278 MB / 460.5 MB, free: 13.05 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002576/0.3816, allocations: 1.378 MB / 461.9 MB, free: 11.68 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001214/0.3818, allocations: 37.97 kB / 461.9 MB, free: 11.64 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.095e-05/0.3818, allocations: 56.56 kB / 462 MB, free: 11.58 MB / 382.1 MB Notification: Performance of pre-optimization done (n=238): time 5.21e-06/0.3818, allocations: 0 / 462 MB, free: 11.58 MB / 382.1 MB Notification: Performance of matching and sorting (n=355): time 0.06172/0.4436, allocations: 17.78 MB / 479.8 MB, free: 9.602 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.872e-05/0.4437, allocations: 90.2 kB / 479.9 MB, free: 9.5 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003116/0.4468, allocations: 1.992 MB / 481.9 MB, free: 7.461 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003623/0.4472, allocations: 81.7 kB / 481.9 MB, free: 7.375 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00082/0.448, allocations: 1.039 MB / 483 MB, free: 6.328 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001193/0.4492, allocations: 1.231 MB / 484.2 MB, free: 5.086 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001147/0.4504, allocations: 0.4996 MB / 484.7 MB, free: 4.578 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001142/0.4505, allocations: 305.1 kB / 485 MB, free: 4.277 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002589/0.4531, allocations: 1.193 MB / 486.2 MB, free: 3.082 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002745/0.4558, allocations: 1.512 MB / 487.7 MB, free: 1.512 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005345/0.4612, allocations: 2.855 MB / 490.6 MB, free: 14.57 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.107e-06/0.4612, allocations: 0 / 490.6 MB, free: 14.57 MB / 414.1 MB Notification: Performance of matching and sorting (n=416) (initialization): time 0.01051/0.4717, allocations: 4.449 MB / 495 MB, free: 10.08 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.796e-05/0.4718, allocations: 12 kB / 495 MB, free: 10.07 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.967e-05/0.4718, allocations: 4 kB / 495 MB, free: 10.06 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005425/0.4773, allocations: 1.346 MB / 496.4 MB, free: 8.699 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002985/0.4803, allocations: 0.5149 MB / 496.9 MB, free: 8.184 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0293/0.5096, allocations: 20.69 MB / 0.5054 GB, free: 2.512 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002662/0.5123, allocations: 87.97 kB / 0.5055 GB, free: 2.426 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005367/0.5129, allocations: 108 kB / 0.5056 GB, free: 2.32 MB / 430.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 (302): * Single equations (assignments): 295 * 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.001682/0.5146, allocations: 0.595 MB / 0.5062 GB, free: 1.715 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007913/0.5154, allocations: 282.2 kB / 0.5065 GB, free: 1.438 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01017/0.5255, allocations: 4.374 MB / 0.5108 GB, free: 13 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.183e-05/0.5256, allocations: 36 kB / 0.5108 GB, free: 12.96 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.172e-05/0.5257, allocations: 4 kB / 0.5108 GB, free: 12.96 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.3e-05/0.5257, allocations: 16.08 kB / 0.5108 GB, free: 12.94 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01727/0.543, allocations: 8.428 MB / 0.519 GB, free: 4.34 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.769e-05/0.543, allocations: 4 kB / 0.519 GB, free: 4.336 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002346/0.5454, allocations: 447.4 kB / 0.5195 GB, free: 3.898 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005279/0.5507, allocations: 1.267 MB / 0.5207 GB, free: 2.613 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003945/0.5511, allocations: 63.98 kB / 0.5208 GB, free: 2.551 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2512/0.8023, allocations: 19.26 MB / 0.5396 GB, free: 121.1 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.162e-06/0.8023, allocations: 2.406 kB / 0.5396 GB, free: 121.1 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01393/0.8163, allocations: 6.072 MB / 0.5455 GB, free: 120.4 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001518/0.8178, allocations: 0.6358 MB / 0.5461 GB, free: 120.1 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004127/0.8183, allocations: 77.16 kB / 0.5462 GB, free: 120 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001683/0.82, allocations: 93.91 kB / 0.5463 GB, free: 120 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006806/0.8206, allocations: 263.7 kB / 0.5465 GB, free: 119.9 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000161/0.8208, allocations: 86.75 kB / 0.5466 GB, free: 119.9 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001653/0.8225, allocations: 1.385 MB / 0.548 GB, free: 119.4 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.373e-06/0.8225, allocations: 0 / 0.548 GB, free: 119.4 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002755/0.8252, allocations: 0.8891 MB / 0.5488 GB, free: 119.3 MB / 462.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 (247): * Single equations (assignments): 240 * 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.01172/0.837, allocations: 6.947 MB / 0.5556 GB, free: 115.9 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006586/0.8436, allocations: 4.426 MB / 0.56 GB, free: 111.9 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.943e-06/0.8436, allocations: 0 / 0.56 GB, free: 111.9 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003861/0.8475, allocations: 2.952 MB / 0.5628 GB, free: 109 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002185/0.8497, allocations: 409.8 kB / 0.5632 GB, free: 108.7 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03906/0.8888, allocations: 24.04 MB / 0.5867 GB, free: 85.59 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001322/0.8902, allocations: 1.758 MB / 0.5884 GB, free: 83.8 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00177/0.892, allocations: 300.8 kB / 0.5887 GB, free: 83.51 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001377/0.8933, allocations: 1.089 MB / 0.5898 GB, free: 82.43 MB / 462.1 MB Notification: Performance of SimCode: time 1.192e-06/0.8934, allocations: 0 / 0.5898 GB, free: 82.43 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1518/1.045, allocations: 78.35 MB / 0.6663 GB, free: 4.562 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.85/20.89, allocations: 19.31 kB / 0.6663 GB, free: 4.547 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStatic.fmu > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches