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.00156/0.00156, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001922/0.001922, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.338/1.338, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00116/0.00116, allocations: 59.72 kB / 307 MB, free: 0.543 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08628/0.08745, allocations: 50.53 MB / 357.6 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic): time 0.01151/0.099, allocations: 11.39 MB / 369 MB, free: 2.559 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1509/0.2499, allocations: 3.517 MB / 372.5 MB, free: 9.16 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002281/0.2522, allocations: 38.97 kB / 372.5 MB, free: 9.16 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001769/0.254, allocations: 0.6966 MB / 373.2 MB, free: 9.152 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0036/0.2576, allocations: 0.9721 MB / 374.2 MB, free: 9.137 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002554/0.2602, allocations: 0.9488 MB / 375.1 MB, free: 9.113 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00395/0.2642, allocations: 3.546 MB / 378.7 MB, free: 8.258 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001114/0.2653, allocations: 0.9062 MB / 379.6 MB, free: 7.836 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001517/0.2668, allocations: 1.318 MB / 380.9 MB, free: 7.188 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001427/0.2683, allocations: 1.553 MB / 382.5 MB, free: 6.449 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004849/0.2688, allocations: 361 kB / 382.8 MB, free: 6.445 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007235/0.2695, allocations: 396.9 kB / 383.2 MB, free: 6.43 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006/0.2701, allocations: 0.7289 MB / 383.9 MB, free: 5.926 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001296/0.2714, allocations: 1.531 MB / 385.5 MB, free: 4.906 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003115/0.2745, allocations: 4.368 MB / 389.8 MB, free: 2.477 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.083e-06/0.2745, allocations: 0 / 389.8 MB, free: 2.477 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.555e-06/0.2746, allocations: 0.9688 kB / 389.8 MB, free: 2.477 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.941e-05/0.2746, allocations: 3.984 kB / 389.8 MB, free: 2.473 MB / 302.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.006155/0.2808, allocations: 3.211 MB / 393.1 MB, free: 240 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.961e-05/0.2808, allocations: 9.906 kB / 393.1 MB, free: 240 kB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002956/0.2811, allocations: 290.7 kB / 393.3 MB, free: 4 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001083/0.2822, allocations: 349.8 kB / 393.7 MB, free: 15.83 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002337/0.2846, allocations: 1.435 MB / 395.1 MB, free: 14.73 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001228/0.2847, allocations: 170.2 kB / 395.3 MB, free: 14.64 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002781/0.285, allocations: 206.7 kB / 395.5 MB, free: 14.57 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003284/0.2883, allocations: 1.868 MB / 397.4 MB, free: 13.46 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.649e-05/0.2883, allocations: 2.812 kB / 397.4 MB, free: 13.46 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001784/0.2885, allocations: 80.41 kB / 397.4 MB, free: 13.4 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.032e-05/0.2886, allocations: 50 kB / 397.5 MB, free: 13.4 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0035/0.2921, allocations: 1.866 MB / 399.4 MB, free: 12.46 MB / 318.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.0116/0.3037, allocations: 7.517 MB / 406.9 MB, free: 6.359 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003394/0.3071, allocations: 2.285 MB / 409.2 MB, free: 4.035 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002386/0.3095, allocations: 1.343 MB / 410.5 MB, free: 2.699 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001139/0.3096, allocations: 35.22 kB / 410.5 MB, free: 2.672 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.136e-05/0.3097, allocations: 56.56 kB / 410.6 MB, free: 2.605 MB / 318.1 MB Notification: Performance of pre-optimization done (n=238): time 4.789e-06/0.3097, allocations: 0 / 410.6 MB, free: 2.605 MB / 318.1 MB Notification: Performance of matching and sorting (n=355): time 0.06117/0.3709, allocations: 17.72 MB / 428.3 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.132e-05/0.371, allocations: 86.2 kB / 428.4 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002883/0.3739, allocations: 1.992 MB / 430.4 MB, free: 14.62 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002787/0.3742, allocations: 81.7 kB / 430.5 MB, free: 14.54 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007315/0.3749, allocations: 1.034 MB / 431.5 MB, free: 13.5 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008808/0.3758, allocations: 1.168 MB / 432.7 MB, free: 12.34 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000861/0.3767, allocations: 0.4917 MB / 433.2 MB, free: 11.84 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.058e-05/0.3768, allocations: 305.1 kB / 433.5 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002275/0.379, allocations: 1.193 MB / 434.7 MB, free: 10.34 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002454/0.3815, allocations: 1.514 MB / 436.2 MB, free: 8.77 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004873/0.3864, allocations: 2.857 MB / 439 MB, free: 5.836 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.692e-06/0.3864, allocations: 4 kB / 439 MB, free: 5.832 MB / 350.1 MB Notification: Performance of matching and sorting (n=416) (initialization): time 0.01051/0.3969, allocations: 4.431 MB / 443.5 MB, free: 1.355 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.83e-05/0.397, allocations: 11.98 kB / 443.5 MB, free: 1.344 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.528e-05/0.397, allocations: 4 kB / 443.5 MB, free: 1.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005573/0.4026, allocations: 1.349 MB / 444.8 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002834/0.4055, allocations: 0.5188 MB / 445.3 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02707/0.4326, allocations: 20.68 MB / 466 MB, free: 9.82 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002688/0.4353, allocations: 96.03 kB / 466.1 MB, free: 9.727 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002807/0.4356, allocations: 104 kB / 466.2 MB, free: 9.625 MB / 382.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.001243/0.4368, allocations: 0.5865 MB / 466.8 MB, free: 9.031 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004873/0.4373, allocations: 272.7 kB / 467.1 MB, free: 8.762 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009768/0.4471, allocations: 4.374 MB / 471.4 MB, free: 4.324 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.203e-05/0.4472, allocations: 40 kB / 471.5 MB, free: 4.285 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.157e-05/0.4472, allocations: 4 kB / 471.5 MB, free: 4.281 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.971e-05/0.4472, allocations: 15.94 kB / 471.5 MB, free: 4.266 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01625/0.4635, allocations: 8.452 MB / 479.9 MB, free: 11.71 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.22e-05/0.4635, allocations: 3.938 kB / 480 MB, free: 11.7 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002318/0.4658, allocations: 451.4 kB / 480.4 MB, free: 11.26 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005251/0.4711, allocations: 1.282 MB / 481.7 MB, free: 9.961 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002552/0.4714, allocations: 71.97 kB / 481.7 MB, free: 9.891 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02342/0.4948, allocations: 19.26 MB / 0.4893 GB, free: 5.664 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.4949, allocations: 0 / 0.4893 GB, free: 5.664 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01266/0.5075, allocations: 6.051 MB / 0.4952 GB, free: 15.5 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001401/0.509, allocations: 0.6303 MB / 0.4958 GB, free: 14.84 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003807/0.5093, allocations: 64 kB / 0.4959 GB, free: 14.78 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001746/0.5111, allocations: 95.95 kB / 0.4959 GB, free: 14.69 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006358/0.5117, allocations: 254.8 kB / 0.4962 GB, free: 14.44 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001836/0.5119, allocations: 87.97 kB / 0.4963 GB, free: 14.35 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001895/0.5138, allocations: 1.391 MB / 0.4976 GB, free: 12.94 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5138, allocations: 0 / 0.4976 GB, free: 12.94 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002816/0.5167, allocations: 0.8828 MB / 0.4985 GB, free: 12.05 MB / 430.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.01318/0.5299, allocations: 6.939 MB / 0.5053 GB, free: 5.117 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.01412/0.544, allocations: 4.565 MB / 0.5097 GB, free: 448 kB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.4e-06/0.544, allocations: 0 / 0.5097 GB, free: 448 kB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004419/0.5485, allocations: 2.944 MB / 0.5126 GB, free: 13.41 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002165/0.5506, allocations: 404.2 kB / 0.513 GB, free: 13.02 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1928/0.7434, allocations: 27.88 MB / 0.5402 GB, free: 138.1 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001433/0.7449, allocations: 1.745 MB / 0.5419 GB, free: 137.3 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001923/0.7468, allocations: 298.3 kB / 0.5422 GB, free: 137.3 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001392/0.7482, allocations: 1.09 MB / 0.5433 GB, free: 136.4 MB / 446.1 MB Notification: Performance of SimCode: time 1.082e-06/0.7482, allocations: 3.344 kB / 0.5433 GB, free: 136.4 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1426/0.8908, allocations: 76.86 MB / 0.6183 GB, free: 71.14 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.5/15.39, allocations: 12.44 kB / 0.6183 GB, free: 71.13 MB / 446.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