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.0014/0.0014, allocations: 118.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.00154/0.00154, allocations: 198 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.508/1.508, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001978/0.001978, allocations: 55.91 kB / 358.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3011/0.3031, allocations: 50.55 MB / 408.8 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic): time 0.01388/0.317, allocations: 11.4 MB / 420.2 MB, free: 6.094 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008011/0.325, allocations: 3.518 MB / 423.7 MB, free: 2.566 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00246/0.3275, allocations: 39.88 kB / 423.7 MB, free: 2.527 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001987/0.3296, allocations: 0.6987 MB / 424.4 MB, free: 1.824 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003743/0.3334, allocations: 0.9736 MB / 425.4 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00285/0.3362, allocations: 0.9358 MB / 426.3 MB, free: 15.91 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005423/0.3417, allocations: 3.556 MB / 429.9 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001863/0.3435, allocations: 0.9064 MB / 430.8 MB, free: 11.4 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002556/0.3461, allocations: 1.324 MB / 432.1 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002845/0.349, allocations: 1.545 MB / 433.7 MB, free: 8.52 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001085/0.3501, allocations: 364 kB / 434 MB, free: 8.164 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001716/0.3518, allocations: 396 kB / 434.4 MB, free: 7.777 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001391/0.3532, allocations: 0.7319 MB / 435.1 MB, free: 7.043 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003437/0.3567, allocations: 1.528 MB / 436.7 MB, free: 5.508 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005455/0.3621, allocations: 4.424 MB / 441.1 MB, free: 1.07 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.977e-06/0.3622, allocations: 7.938 kB / 441.1 MB, free: 1.062 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.435e-06/0.3622, allocations: 0 / 441.1 MB, free: 1.062 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.089e-05/0.3622, allocations: 0 / 441.1 MB, free: 1.062 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.007632/0.3699, allocations: 3.289 MB / 444.4 MB, free: 13.7 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.961e-05/0.3699, allocations: 12.03 kB / 444.4 MB, free: 13.69 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000416/0.3704, allocations: 283.7 kB / 444.7 MB, free: 13.4 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001092/0.3715, allocations: 370.9 kB / 445 MB, free: 13.04 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00275/0.3742, allocations: 1.478 MB / 446.5 MB, free: 11.51 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001408/0.3744, allocations: 164.1 kB / 446.7 MB, free: 11.34 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003255/0.3747, allocations: 211.9 kB / 446.9 MB, free: 11.14 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003649/0.3784, allocations: 1.87 MB / 448.7 MB, free: 9.211 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.716e-05/0.3784, allocations: 3.953 kB / 448.7 MB, free: 9.207 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001983/0.3786, allocations: 91.94 kB / 448.8 MB, free: 9.117 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.006e-05/0.3787, allocations: 48 kB / 448.9 MB, free: 9.07 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0038/0.3825, allocations: 1.863 MB / 450.7 MB, free: 7.191 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.01333/0.3959, allocations: 7.474 MB / 458.2 MB, free: 15.43 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003779/0.3997, allocations: 2.283 MB / 460.5 MB, free: 13.11 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002683/0.4024, allocations: 1.374 MB / 461.9 MB, free: 11.74 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001326/0.4025, allocations: 45.91 kB / 461.9 MB, free: 11.69 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.083e-05/0.4026, allocations: 56.56 kB / 462 MB, free: 11.63 MB / 382.1 MB Notification: Performance of pre-optimization done (n=238): time 4.278e-06/0.4026, allocations: 0 / 462 MB, free: 11.63 MB / 382.1 MB Notification: Performance of matching and sorting (n=355): time 0.06217/0.4648, allocations: 17.77 MB / 479.7 MB, free: 9.66 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.369e-05/0.4649, allocations: 94.19 kB / 479.8 MB, free: 9.555 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003204/0.4681, allocations: 1.98 MB / 481.8 MB, free: 7.527 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002319/0.4683, allocations: 85.64 kB / 481.9 MB, free: 7.438 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008897/0.4692, allocations: 1.046 MB / 482.9 MB, free: 6.383 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001092/0.4703, allocations: 1.228 MB / 484.2 MB, free: 5.145 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009023/0.4713, allocations: 0.4958 MB / 484.7 MB, free: 4.641 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001469/0.4714, allocations: 305.1 kB / 485 MB, free: 4.34 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002398/0.4738, allocations: 1.193 MB / 486.2 MB, free: 3.145 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002763/0.4766, allocations: 1.502 MB / 487.7 MB, free: 1.582 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005403/0.482, allocations: 2.859 MB / 490.5 MB, free: 14.64 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.34e-05/0.482, allocations: 4 kB / 490.5 MB, free: 14.64 MB / 414.1 MB Notification: Performance of matching and sorting (n=416) (initialization): time 0.01108/0.4931, allocations: 4.465 MB / 495 MB, free: 10.13 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.719e-05/0.4932, allocations: 8 kB / 495 MB, free: 10.12 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.914e-05/0.4932, allocations: 8 kB / 495 MB, free: 10.11 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005614/0.4988, allocations: 1.346 MB / 496.4 MB, free: 8.75 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00273/0.5016, allocations: 0.511 MB / 496.9 MB, free: 8.238 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0311/0.5327, allocations: 20.67 MB / 0.5054 GB, free: 2.578 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002728/0.5355, allocations: 95.91 kB / 0.5055 GB, free: 2.484 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000311/0.5358, allocations: 104 kB / 0.5056 GB, free: 2.383 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.001447/0.5372, allocations: 0.5988 MB / 0.5062 GB, free: 1.773 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005864/0.5378, allocations: 282.2 kB / 0.5064 GB, free: 1.496 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01085/0.5487, allocations: 4.371 MB / 0.5107 GB, free: 13.06 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.142e-05/0.5488, allocations: 36 kB / 0.5108 GB, free: 13.02 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.029e-05/0.5488, allocations: 4 kB / 0.5108 GB, free: 13.02 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.385e-05/0.5488, allocations: 16.08 kB / 0.5108 GB, free: 13 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01783/0.5666, allocations: 8.424 MB / 0.519 GB, free: 4.406 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.497e-05/0.5667, allocations: 4 kB / 0.519 GB, free: 4.402 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002624/0.5693, allocations: 447.4 kB / 0.5194 GB, free: 3.965 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005887/0.5752, allocations: 1.275 MB / 0.5207 GB, free: 2.672 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000515/0.5758, allocations: 67.98 kB / 0.5207 GB, free: 2.605 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2472/0.823, allocations: 19.26 MB / 0.5395 GB, free: 121.7 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.314e-06/0.823, allocations: 3.719 kB / 0.5395 GB, free: 121.7 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01369/0.8367, allocations: 6.071 MB / 0.5455 GB, free: 121 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001322/0.8381, allocations: 0.642 MB / 0.5461 GB, free: 120.6 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003387/0.8385, allocations: 63.81 kB / 0.5462 GB, free: 120.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001698/0.8402, allocations: 94.2 kB / 0.5463 GB, free: 120.6 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006222/0.8408, allocations: 267.5 kB / 0.5465 GB, free: 120.5 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001571/0.841, allocations: 86.72 kB / 0.5466 GB, free: 120.5 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001613/0.8426, allocations: 1.383 MB / 0.5479 GB, free: 119.9 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.8426, allocations: 0 / 0.5479 GB, free: 119.9 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002661/0.8453, allocations: 0.8835 MB / 0.5488 GB, free: 119.8 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.01237/0.8576, allocations: 6.959 MB / 0.5556 GB, free: 116.5 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006948/0.8646, allocations: 4.421 MB / 0.5599 GB, free: 112.5 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.428e-06/0.8647, allocations: 4 kB / 0.5599 GB, free: 112.5 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004263/0.8689, allocations: 2.953 MB / 0.5628 GB, free: 109.7 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002416/0.8714, allocations: 401.5 kB / 0.5632 GB, free: 109.3 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03776/0.9092, allocations: 24.06 MB / 0.5867 GB, free: 86.17 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001147/0.9104, allocations: 1.747 MB / 0.5884 GB, free: 84.39 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001457/0.9118, allocations: 300.8 kB / 0.5887 GB, free: 84.09 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001223/0.9131, allocations: 1.093 MB / 0.5897 GB, free: 83 MB / 462.1 MB Notification: Performance of SimCode: time 1.012e-06/0.9131, allocations: 4 kB / 0.5897 GB, free: 83 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1573/1.07, allocations: 78.35 MB / 0.6663 GB, free: 5.137 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 20.82/21.89, allocations: 15.25 kB / 0.6663 GB, free: 5.125 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.1.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