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.001079/0.001079, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001145/0.001145, allocations: 201.2 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.412/1.412, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2354/0.2354, allocations: 46.1 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001621/0.001621, allocations: 71.88 kB / 480.8 MB, free: 4.586 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3428/0.3444, 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.006726/0.3512, allocations: 5.328 MB / 0.5357 GB, free: 9.188 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003224/0.3544, allocations: 1.636 MB / 0.5373 GB, free: 7.852 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004712/0.3549, allocations: 23.28 kB / 0.5373 GB, free: 7.848 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003522/0.3585, allocations: 1.6 MB / 0.5389 GB, free: 6.645 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001064/0.3596, allocations: 312.7 kB / 0.5392 GB, free: 6.387 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001249/0.3608, allocations: 0.5178 MB / 0.5397 GB, free: 5.992 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001074/0.3619, allocations: 0.8048 MB / 0.5405 GB, free: 5.504 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001094/0.363, allocations: 0.7237 MB / 0.5412 GB, free: 5.062 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006498/0.3637, allocations: 342.9 kB / 0.5415 GB, free: 4.867 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006021/0.3643, allocations: 464.9 kB / 0.542 GB, free: 4.57 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001264/0.3645, allocations: 75.06 kB / 0.542 GB, free: 4.57 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005789/0.365, allocations: 203.7 kB / 0.5422 GB, free: 4.508 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001547/0.3652, allocations: 174.2 kB / 0.5424 GB, free: 4.363 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004471/0.3657, allocations: 427.6 kB / 0.5428 GB, free: 4.074 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001574/0.3672, allocations: 1.175 MB / 0.5439 GB, free: 3.191 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/0.3673, allocations: 0 / 0.5439 GB, free: 3.191 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.3673, allocations: 0 / 0.5439 GB, free: 3.191 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.693e-05/0.3673, 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.003699/0.371, allocations: 1.374 MB / 0.5453 GB, free: 2.18 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.761e-05/0.3711, allocations: 8.562 kB / 0.5453 GB, free: 2.18 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001891/0.3713, allocations: 152.6 kB / 0.5454 GB, free: 2.055 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001762/0.373, allocations: 249.1 kB / 0.5457 GB, free: 1.934 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003227/0.3734, allocations: 269 kB / 0.5459 GB, free: 1.656 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.317e-05/0.3735, allocations: 75.06 kB / 0.546 GB, free: 1.621 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001791/0.3737, allocations: 99.88 kB / 0.5461 GB, free: 1.586 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001588/0.3753, allocations: 0.9313 MB / 0.547 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.761e-05/0.3753, allocations: 7.953 kB / 0.547 GB, free: 0.7344 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.368e-05/0.3754, allocations: 40 kB / 0.5471 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.09e-05/0.3754, allocations: 28 kB / 0.5471 GB, free: 0.668 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001243/0.3767, allocations: 0.7184 MB / 0.5478 GB, free: 15.95 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005137/0.3818, allocations: 4.088 MB / 0.5518 GB, free: 11.49 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002398/0.3842, allocations: 3.371 MB / 0.5551 GB, free: 7.465 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004062/0.3847, allocations: 299.3 kB / 0.5554 GB, free: 7.164 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001772/0.3849, allocations: 178.5 kB / 0.5555 GB, free: 6.953 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.02e-05/0.3849, allocations: 42.89 kB / 0.5556 GB, free: 6.902 MB / 414.1 MB Notification: Performance of pre-optimization done (n=66): time 2.665e-06/0.3849, allocations: 0 / 0.5556 GB, free: 6.902 MB / 414.1 MB Notification: Performance of matching and sorting (n=66): time 0.002708/0.3876, allocations: 1.33 MB / 0.5569 GB, free: 5.484 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.095e-05/0.3877, allocations: 136.5 kB / 0.557 GB, free: 5.32 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003781/0.3881, allocations: 314.8 kB / 0.5573 GB, free: 5.004 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.883e-05/0.3881, allocations: 41.64 kB / 0.5573 GB, free: 4.957 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002253/0.3884, allocations: 415.8 kB / 0.5577 GB, free: 4.543 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001681/0.3885, allocations: 238 kB / 0.558 GB, free: 4.309 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002098/0.3888, allocations: 150.6 kB / 0.5581 GB, free: 4.156 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001374/0.3889, allocations: 358.7 kB / 0.5584 GB, free: 3.797 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000342/0.3893, allocations: 197.9 kB / 0.5586 GB, free: 3.605 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00046/0.3897, allocations: 404.7 kB / 0.559 GB, free: 3.133 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000817/0.3905, allocations: 0.622 MB / 0.5596 GB, free: 2.43 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.22e-06/0.3906, allocations: 0 / 0.5596 GB, free: 2.43 MB / 414.1 MB Notification: Performance of matching and sorting (n=106) (initialization): time 0.001501/0.3921, allocations: 0.8815 MB / 0.5605 GB, free: 1.531 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.334e-05/0.3921, allocations: 11.98 kB / 0.5605 GB, free: 1.52 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.196e-05/0.3921, allocations: 4 kB / 0.5605 GB, free: 1.516 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006848/0.3928, allocations: 223.4 kB / 0.5607 GB, free: 1.285 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004891/0.3933, allocations: 147.7 kB / 0.5609 GB, free: 1.141 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005569/0.3989, allocations: 6.7 MB / 0.5674 GB, free: 9.879 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005759/0.3995, allocations: 95.22 kB / 0.5675 GB, free: 9.785 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.755e-05/0.3996, allocations: 36 kB / 0.5675 GB, free: 9.75 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.0003411/0.3999, allocations: 225.5 kB / 0.5677 GB, free: 9.52 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001508/0.4001, allocations: 39.77 kB / 0.5678 GB, free: 9.48 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001255/0.4014, allocations: 0.691 MB / 0.5685 GB, free: 8.766 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.826e-06/0.4014, allocations: 8 kB / 0.5685 GB, free: 8.758 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.077e-05/0.4014, allocations: 4 kB / 0.5685 GB, free: 8.754 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.474e-06/0.4014, allocations: 4 kB / 0.5685 GB, free: 8.75 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002413/0.4038, allocations: 1.57 MB / 0.57 GB, free: 7.113 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.438e-06/0.4038, allocations: 0 / 0.57 GB, free: 7.113 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002638/0.4041, allocations: 71.91 kB / 0.5701 GB, free: 7.043 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005675/0.4047, allocations: 215.2 kB / 0.5703 GB, free: 6.82 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.369e-05/0.4048, allocations: 15.98 kB / 0.5703 GB, free: 6.805 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005285/0.4101, allocations: 6.706 MB / 0.5768 GB, free: 15.54 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.02e-06/0.4101, allocations: 7.969 kB / 0.5768 GB, free: 15.53 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001543/0.4116, allocations: 1.191 MB / 0.578 GB, free: 14.31 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001552/0.4118, allocations: 132.7 kB / 0.5781 GB, free: 14.16 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.684e-05/0.4119, allocations: 15.98 kB / 0.5782 GB, free: 14.14 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003689/0.4123, allocations: 12 kB / 0.5782 GB, free: 14.13 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000108/0.4124, allocations: 63.8 kB / 0.5782 GB, free: 14.07 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.791e-05/0.4124, allocations: 16 kB / 0.5782 GB, free: 14.05 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0002323/0.4127, allocations: 210 kB / 0.5784 GB, free: 13.85 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.4127, allocations: 0 / 0.5784 GB, free: 13.85 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001054/0.4137, allocations: 279.4 kB / 0.5787 GB, free: 13.57 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.001931/0.4157, allocations: 1.774 MB / 0.5804 GB, free: 11.76 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001617/0.4173, allocations: 1.067 MB / 0.5815 GB, free: 10.64 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.508e-06/0.4173, allocations: 0 / 0.5815 GB, free: 10.64 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009329/0.4183, allocations: 0.7844 MB / 0.5822 GB, free: 9.805 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007186/0.419, allocations: 48.48 kB / 0.5823 GB, free: 9.758 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007104/0.4261, allocations: 5.146 MB / 0.5873 GB, free: 4.336 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005163/0.4267, allocations: 0.9111 MB / 0.5882 GB, free: 3.395 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0002607/0.4269, allocations: 64.55 kB / 0.5883 GB, free: 3.332 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002636/0.4272, allocations: 231.3 kB / 0.5885 GB, free: 3.105 MB / 446.1 MB Notification: Performance of SimCode: time 8.31e-07/0.4272, allocations: 3.938 kB / 0.5885 GB, free: 3.102 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0399/0.4671, allocations: 11.76 MB / 0.6 GB, free: 7.527 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.31/10.78, allocations: 9.875 kB / 0.6 GB, free: 7.523 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