Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.NoPhysicalTestLeakage.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(ModelicaTest.Magnetic.QuasiStatic.FluxTubes.NoPhysicalTestLeakage,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Magnetic_QuasiStatic_FluxTubes_NoPhysicalTestLeakage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.QuasiStatic.FluxTubes.NoPhysicalTestLeakage,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Magnetic_QuasiStatic_FluxTubes_NoPhysicalTestLeakage",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009548/0.0009549, allocations: 192.8 kB / 16.09 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.248/1.248, allocations: 226.5 MB / 243.4 MB, free: 6.496 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007918/0.0007918, allocations: 97.16 kB / 295.5 MB, free: 6.691 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.308/0.308, allocations: 44.83 MB / 392.3 MB, free: 35.69 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002304/0.0002304, allocations: 11.98 kB / 465.4 MB, free: 12.57 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2567/0.2569, allocations: 62.95 MB / 0.516 GB, free: 37.21 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.QuasiStatic.FluxTubes.NoPhysicalTestLeakage): time 0.003582/0.2605, allocations: 4.558 MB / 0.5204 GB, free: 33.9 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002003/0.2626, allocations: 1.503 MB / 0.5219 GB, free: 32.8 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002226/0.2628, allocations: 20.19 kB / 0.5219 GB, free: 32.8 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003405/0.2632, allocations: 169.1 kB / 0.5221 GB, free: 32.72 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004736/0.2637, allocations: 255.8 kB / 0.5223 GB, free: 32.55 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007224/0.2644, allocations: 433.4 kB / 0.5227 GB, free: 32.28 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004928/0.2649, allocations: 0.7383 MB / 0.5234 GB, free: 31.89 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001781/0.2667, allocations: 1.339 MB / 0.5247 GB, free: 31.04 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003039/0.267, allocations: 282.1 kB / 0.525 GB, free: 30.91 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000309/0.2673, allocations: 393.1 kB / 0.5254 GB, free: 30.74 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.841e-05/0.2674, allocations: 37.56 kB / 0.5254 GB, free: 30.74 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003136/0.2677, allocations: 156.6 kB / 0.5256 GB, free: 30.7 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.287e-05/0.2678, allocations: 133 kB / 0.5257 GB, free: 30.62 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002286/0.268, allocations: 384.3 kB / 0.5261 GB, free: 30.38 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005869/0.2686, allocations: 0.8989 MB / 0.5269 GB, free: 30.14 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.2686, allocations: 3 kB / 0.5269 GB, free: 30.14 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.2686, allocations: 0 / 0.5269 GB, free: 30.14 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.836e-06/0.2686, allocations: 4 kB / 0.527 GB, free: 30.13 MB / 378.7 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.002558/0.2712, allocations: 1.204 MB / 0.5281 GB, free: 29.41 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.353e-05/0.2713, allocations: 9.875 kB / 0.5281 GB, free: 29.41 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001474/0.2714, allocations: 146.1 kB / 0.5283 GB, free: 29.32 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001372/0.2728, allocations: 244 kB / 0.5285 GB, free: 29.25 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001756/0.273, allocations: 265.1 kB / 0.5288 GB, free: 28.98 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001093/0.2731, allocations: 82.64 kB / 0.5288 GB, free: 28.95 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001098/0.2732, allocations: 104.3 kB / 0.5289 GB, free: 28.91 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001317/0.2745, allocations: 0.9264 MB / 0.5298 GB, free: 28.5 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.249e-05/0.2746, allocations: 3.062 kB / 0.5298 GB, free: 28.5 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.756e-05/0.2747, allocations: 40.09 kB / 0.5299 GB, free: 28.46 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.62e-05/0.2747, allocations: 24.38 kB / 0.5299 GB, free: 28.46 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001035/0.2757, allocations: 0.7221 MB / 0.5306 GB, free: 28.21 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003836/0.2796, allocations: 4.124 MB / 0.5346 GB, free: 25.03 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001693/0.2813, allocations: 3.366 MB / 0.5379 GB, free: 21.47 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000333/0.2816, allocations: 300.8 kB / 0.5382 GB, free: 21.33 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001363/0.2818, allocations: 179.7 kB / 0.5384 GB, free: 21.14 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.021e-05/0.2818, allocations: 41.86 kB / 0.5384 GB, free: 21.09 MB / 378.7 MB Notification: Performance of pre-optimization done (n=66): time 2.815e-06/0.2818, allocations: 2.844 kB / 0.5384 GB, free: 21.09 MB / 378.7 MB Notification: Performance of matching and sorting (n=66): time 0.002203/0.284, allocations: 1.341 MB / 0.5397 GB, free: 20.32 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.028e-05/0.2841, allocations: 137.7 kB / 0.5399 GB, free: 20.16 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002907/0.2844, allocations: 320.3 kB / 0.5402 GB, free: 19.98 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.455e-05/0.2844, allocations: 40.27 kB / 0.5402 GB, free: 19.94 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001239/0.2845, allocations: 399.5 kB / 0.5406 GB, free: 19.62 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.381e-05/0.2846, allocations: 222.5 kB / 0.5408 GB, free: 19.45 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.932e-05/0.2847, allocations: 22.56 kB / 0.5408 GB, free: 19.43 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.207e-05/0.2847, allocations: 353.8 kB / 0.5412 GB, free: 19.1 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002804/0.285, allocations: 205.4 kB / 0.5414 GB, free: 19.02 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003378/0.2854, allocations: 394.5 kB / 0.5417 GB, free: 18.72 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006376/0.286, allocations: 0.6204 MB / 0.5423 GB, free: 18.27 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.286, allocations: 2.625 kB / 0.5423 GB, free: 18.27 MB / 378.7 MB Notification: Performance of matching and sorting (n=106) (initialization): time 0.001161/0.2872, allocations: 0.8738 MB / 0.5432 GB, free: 17.87 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.921e-05/0.2872, allocations: 8.062 kB / 0.5432 GB, free: 17.87 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.038e-05/0.2872, allocations: 5.562 kB / 0.5432 GB, free: 17.87 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000531/0.2878, allocations: 222.2 kB / 0.5434 GB, free: 17.78 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004314/0.2882, allocations: 141.4 kB / 0.5436 GB, free: 17.77 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003933/0.2922, allocations: 6.234 MB / 0.5496 GB, free: 11.93 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000464/0.2926, allocations: 91.12 kB / 0.5497 GB, free: 11.87 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.423e-05/0.2927, allocations: 35.28 kB / 0.5498 GB, free: 11.86 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 8,(1,100.0%) 8,(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002721/0.293, allocations: 224.7 kB / 0.55 GB, free: 11.67 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001159/0.2931, allocations: 45.14 kB / 0.55 GB, free: 11.64 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001207/0.2943, allocations: 0.6776 MB / 0.5507 GB, free: 11.31 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.837e-06/0.2943, allocations: 7.469 kB / 0.5507 GB, free: 11.31 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.367e-06/0.2944, allocations: 6.234 kB / 0.5507 GB, free: 11.31 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.438e-06/0.2944, allocations: 7.312 kB / 0.5507 GB, free: 11.3 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002123/0.2965, allocations: 1.571 MB / 0.5522 GB, free: 10.39 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.639e-06/0.2965, allocations: 1.406 kB / 0.5522 GB, free: 10.39 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002348/0.2968, allocations: 71.81 kB / 0.5523 GB, free: 10.38 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004992/0.2973, allocations: 212.2 kB / 0.5525 GB, free: 10.29 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.96e-05/0.2973, allocations: 21.53 kB / 0.5525 GB, free: 10.28 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003761/0.3011, allocations: 6.235 MB / 0.5586 GB, free: 4.434 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.3011, allocations: 5.094 kB / 0.5586 GB, free: 4.43 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001336/0.3024, allocations: 1.176 MB / 0.5598 GB, free: 3.695 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.859e-05/0.3026, allocations: 125.3 kB / 0.5599 GB, free: 3.57 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.81e-05/0.3026, allocations: 17.19 kB / 0.5599 GB, free: 3.559 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003136/0.3029, allocations: 14.91 kB / 0.5599 GB, free: 3.551 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001263/0.3031, allocations: 54.91 kB / 0.56 GB, free: 3.539 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.948e-05/0.3031, allocations: 18.73 kB / 0.56 GB, free: 3.535 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002209/0.3033, allocations: 211.8 kB / 0.5602 GB, free: 3.41 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.11e-07/0.3033, allocations: 0 / 0.5602 GB, free: 3.41 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009831/0.3043, allocations: 279.8 kB / 0.5605 GB, free: 3.336 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 8,(1,100.0%) 8,(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001648/0.306, allocations: 1.757 MB / 0.5622 GB, free: 2.047 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001329/0.3073, allocations: 1.075 MB / 0.5632 GB, free: 1.348 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.3073, allocations: 0 / 0.5632 GB, free: 1.348 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006987/0.308, allocations: 0.7878 MB / 0.564 GB, free: 0.7422 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005956/0.3086, allocations: 47.05 kB / 0.564 GB, free: 0.7148 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007299/0.3159, allocations: 3.289 MB / 0.5673 GB, free: 14.67 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007433/0.3167, allocations: 0.9094 MB / 0.5681 GB, free: 13.96 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005108/0.3173, allocations: 240.4 kB / 0.5684 GB, free: 13.78 MB / 394.7 MB Notification: Performance of SimCode: time 1.133e-06/0.3173, allocations: 0 / 0.5684 GB, free: 13.78 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.025/4.342, allocations: 21.56 MB / 0.5894 GB, free: 11.05 MB / 410.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.NoPhysicalTestLeakage.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.NoPhysicalTestLeakage.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.NoPhysicalTestLeakage.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.NoPhysicalTestLeakage.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.NoPhysicalTestLeakage_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Magnetic_QuasiStatic_FluxTubes_NoPhysicalTestLeakage_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Magnetic_QuasiStatic_FluxTubes_NoPhysicalTestLeakage.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.NoPhysicalTestLeakage.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.NoPhysicalTestLeakage_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/QuasiStatic/FluxTubes/NoPhysicalTestLeakage/NoPhysicalTestLeakage.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.NoPhysicalTestLeakage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches