Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.NoPhysicalTestLeakage.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Magnetic.QuasiStatic.FluxTubes.NoPhysicalTestLeakage,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_QuasiStatic_FluxTubes_NoPhysicalTestLeakage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.QuasiStatic.FluxTubes.NoPhysicalTestLeakage,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_QuasiStatic_FluxTubes_NoPhysicalTestLeakage",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001444/0.001444, 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.001778/0.001778, 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.43/1.43, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2254/0.2254, allocations: 46.1 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00161/0.00161, allocations: 75.86 kB / 480.8 MB, free: 4.559 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3273/0.329, allocations: 62.44 MB / 0.5305 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.QuasiStatic.FluxTubes.NoPhysicalTestLeakage): time 0.006314/0.3353, allocations: 5.326 MB / 0.5357 GB, free: 9.188 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003306/0.3387, allocations: 1.639 MB / 0.5373 GB, free: 7.848 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003982/0.3391, allocations: 19.06 kB / 0.5373 GB, free: 7.848 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003525/0.3427, allocations: 1.6 MB / 0.5389 GB, free: 6.645 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001149/0.3438, allocations: 313.8 kB / 0.5392 GB, free: 6.387 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001378/0.3452, allocations: 0.516 MB / 0.5397 GB, free: 5.992 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001405/0.3466, allocations: 0.8009 MB / 0.5405 GB, free: 5.508 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00128/0.3479, allocations: 0.7243 MB / 0.5412 GB, free: 5.066 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006424/0.3486, allocations: 345.5 kB / 0.5415 GB, free: 4.867 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006224/0.3492, allocations: 469.1 kB / 0.542 GB, free: 4.566 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001166/0.3493, allocations: 75.5 kB / 0.542 GB, free: 4.566 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005751/0.3499, allocations: 199.6 kB / 0.5422 GB, free: 4.508 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001524/0.3501, allocations: 174.1 kB / 0.5424 GB, free: 4.363 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004657/0.3506, allocations: 427.4 kB / 0.5428 GB, free: 4.074 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001862/0.3524, allocations: 1.175 MB / 0.5439 GB, free: 3.191 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.847e-06/0.3524, allocations: 0 / 0.5439 GB, free: 3.191 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.574e-06/0.3525, allocations: 0 / 0.5439 GB, free: 3.191 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.536e-05/0.3525, allocations: 0 / 0.5439 GB, free: 3.191 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 252 * Number of variables: 252 Notification: Performance of Generate backend data structure: time 0.003753/0.3563, allocations: 1.374 MB / 0.5453 GB, free: 2.18 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.267e-05/0.3563, allocations: 9.812 kB / 0.5453 GB, free: 2.18 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001754/0.3565, allocations: 152.7 kB / 0.5454 GB, free: 2.055 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001663/0.3582, allocations: 252.9 kB / 0.5457 GB, free: 1.93 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003581/0.3585, allocations: 266.1 kB / 0.5459 GB, free: 1.652 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.861e-05/0.3586, allocations: 73.78 kB / 0.546 GB, free: 1.617 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001701/0.3588, allocations: 105.9 kB / 0.5461 GB, free: 1.578 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001515/0.3603, allocations: 0.9228 MB / 0.547 GB, free: 0.7383 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.278e-05/0.3604, allocations: 11.95 kB / 0.547 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.447e-05/0.3605, allocations: 36 kB / 0.5471 GB, free: 0.6914 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.429e-05/0.3605, allocations: 32 kB / 0.5471 GB, free: 0.6602 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001227/0.3617, allocations: 0.7223 MB / 0.5478 GB, free: 15.94 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004868/0.3666, allocations: 4.076 MB / 0.5518 GB, free: 11.49 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002339/0.369, allocations: 3.373 MB / 0.5551 GB, free: 7.465 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003803/0.3694, allocations: 288.5 kB / 0.5553 GB, free: 7.172 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001581/0.3695, allocations: 182.5 kB / 0.5555 GB, free: 6.957 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.759e-05/0.3696, allocations: 50.83 kB / 0.5556 GB, free: 6.898 MB / 414.1 MB Notification: Performance of pre-optimization done (n=66): time 2.355e-06/0.3696, allocations: 0 / 0.5556 GB, free: 6.898 MB / 414.1 MB Notification: Performance of matching and sorting (n=66): time 0.002547/0.3721, allocations: 1.33 MB / 0.5569 GB, free: 5.48 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.983e-05/0.3722, allocations: 136.5 kB / 0.557 GB, free: 5.316 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003568/0.3726, allocations: 314.8 kB / 0.5573 GB, free: 5 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.441e-05/0.3726, allocations: 41.7 kB / 0.5573 GB, free: 4.953 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002249/0.3729, allocations: 415.8 kB / 0.5577 GB, free: 4.539 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001671/0.373, allocations: 242 kB / 0.558 GB, free: 4.301 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001897/0.3732, allocations: 150.5 kB / 0.5581 GB, free: 4.148 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001242/0.3734, allocations: 354.7 kB / 0.5584 GB, free: 3.793 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003433/0.3737, allocations: 197.9 kB / 0.5586 GB, free: 3.602 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004616/0.3742, allocations: 408.5 kB / 0.559 GB, free: 3.125 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007982/0.375, allocations: 0.6181 MB / 0.5596 GB, free: 2.426 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.226e-06/0.375, allocations: 0 / 0.5596 GB, free: 2.426 MB / 414.1 MB Notification: Performance of matching and sorting (n=106) (initialization): time 0.001457/0.3765, allocations: 0.8815 MB / 0.5605 GB, free: 1.527 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.164e-05/0.3765, allocations: 8 kB / 0.5605 GB, free: 1.52 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.323e-05/0.3765, allocations: 7.938 kB / 0.5605 GB, free: 1.512 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000651/0.3772, allocations: 223.5 kB / 0.5607 GB, free: 1.281 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004763/0.3777, allocations: 139.8 kB / 0.5608 GB, free: 1.145 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005661/0.3834, allocations: 6.704 MB / 0.5674 GB, free: 9.879 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006579/0.384, allocations: 91.28 kB / 0.5675 GB, free: 9.789 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.965e-05/0.3842, allocations: 36 kB / 0.5675 GB, free: 9.754 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (82): * Single equations (assignments): 78 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,8,100.0%), (1,8,100.0%), (1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003929/0.3846, allocations: 225.5 kB / 0.5677 GB, free: 9.523 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001789/0.3847, allocations: 43.77 kB / 0.5678 GB, free: 9.48 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00129/0.386, allocations: 0.6884 MB / 0.5684 GB, free: 8.77 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.086e-05/0.3861, allocations: 8 kB / 0.5685 GB, free: 8.762 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.547e-05/0.3861, allocations: 7.984 kB / 0.5685 GB, free: 8.754 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.558e-06/0.3861, allocations: 4 kB / 0.5685 GB, free: 8.75 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00254/0.3886, allocations: 1.573 MB / 0.57 GB, free: 7.109 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.041e-06/0.3887, allocations: 0 / 0.57 GB, free: 7.109 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002613/0.3889, allocations: 67.91 kB / 0.5701 GB, free: 7.043 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005802/0.3895, allocations: 219.5 kB / 0.5703 GB, free: 6.816 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.06e-05/0.3896, allocations: 15.98 kB / 0.5703 GB, free: 6.801 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005507/0.3951, allocations: 6.698 MB / 0.5768 GB, free: 15.54 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.729e-06/0.3951, allocations: 4.031 kB / 0.5768 GB, free: 15.54 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001579/0.3967, allocations: 1.191 MB / 0.578 GB, free: 14.32 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001761/0.3969, allocations: 132.7 kB / 0.5781 GB, free: 14.17 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.187e-05/0.397, allocations: 19.98 kB / 0.5781 GB, free: 14.15 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003623/0.3974, allocations: 12 kB / 0.5782 GB, free: 14.14 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001097/0.3975, allocations: 59.75 kB / 0.5782 GB, free: 14.08 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.623e-05/0.3975, allocations: 23.98 kB / 0.5782 GB, free: 14.05 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0002448/0.3978, allocations: 206 kB / 0.5784 GB, free: 13.85 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3978, allocations: 0 / 0.5784 GB, free: 13.85 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001155/0.3989, allocations: 275.4 kB / 0.5787 GB, free: 13.58 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (constantSource2.port_p.reference.gamma,constantSource1.port_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,8,100.0%), (1,8,100.0%), (1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00194/0.4009, allocations: 1.778 MB / 0.5804 GB, free: 11.77 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0016/0.4025, allocations: 1.064 MB / 0.5815 GB, free: 10.65 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.458e-06/0.4025, allocations: 3.938 kB / 0.5815 GB, free: 10.64 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008795/0.4034, allocations: 0.7805 MB / 0.5822 GB, free: 9.812 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007058/0.4041, allocations: 55.56 kB / 0.5823 GB, free: 9.762 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006911/0.4111, allocations: 5.161 MB / 0.5873 GB, free: 4.324 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005014/0.4116, allocations: 0.9111 MB / 0.5882 GB, free: 3.383 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0002493/0.4119, allocations: 64.55 kB / 0.5883 GB, free: 3.32 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002654/0.4121, allocations: 238.8 kB / 0.5885 GB, free: 3.09 MB / 446.1 MB Notification: Performance of SimCode: time 7.02e-07/0.4121, allocations: 0 / 0.5885 GB, free: 3.09 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04067/0.4528, allocations: 11.76 MB / 0.6 GB, free: 7.52 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.05/10.5, allocations: 5.344 kB / 0.6 GB, free: 7.52 MB / 462.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.NoPhysicalTestLeakage.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.NoPhysicalTestLeakage.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.NoPhysicalTestLeakage.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.NoPhysicalTestLeakage.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.NoPhysicalTestLeakage_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 ModelicaTest_trunk_ModelicaTest_Magnetic_QuasiStatic_FluxTubes_NoPhysicalTestLeakage.fmu > ModelicaTest_trunk_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.NoPhysicalTestLeakage.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.NoPhysicalTestLeakage_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/QuasiStatic/FluxTubes/NoPhysicalTestLeakage/NoPhysicalTestLeakage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.NoPhysicalTestLeakage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches