Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Sources.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001607/0.001607, allocations: 105.1 kB / 21.22 MB, free: 0.6289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001975/0.001975, allocations: 211.8 kB / 24.51 MB, free: 3.914 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.468/1.468, allocations: 230.6 MB / 258.3 MB, free: 7.773 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2805/0.2805, allocations: 46.96 MB / 361.6 MB, free: 4.02 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Sources,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Magnetic_FluxTubes_Sources",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Sources,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Magnetic_FluxTubes_Sources",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001987/0.001987, allocations: 75.89 kB / 0.4969 GB, free: 7.711 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3133/0.3153, allocations: 66.03 MB / 0.5613 GB, free: 4.242 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Sources): time 0.004057/0.3194, allocations: 2.519 MB / 0.5638 GB, free: 1.715 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001394/0.3208, allocations: 0.7438 MB / 0.5645 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001476/0.3209, allocations: 8 kB / 0.5645 GB, free: 0.957 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002449/0.3211, allocations: 79.31 kB / 0.5646 GB, free: 0.8789 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002462/0.3214, allocations: 107.2 kB / 0.5647 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002995/0.3217, allocations: 107.8 kB / 0.5648 GB, free: 0.668 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004358/0.3221, allocations: 426.3 kB / 0.5652 GB, free: 256 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002204/0.3223, allocations: 99.84 kB / 0.5653 GB, free: 152 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001842/0.3225, allocations: 151.4 kB / 0.5655 GB, free: 0 / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002124/0.3227, allocations: 175.2 kB / 0.5656 GB, free: 15.83 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.072e-05/0.3228, allocations: 32 kB / 0.5657 GB, free: 15.8 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.981e-05/0.3229, allocations: 32 kB / 0.5657 GB, free: 15.77 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.22e-05/0.3229, allocations: 83.69 kB / 0.5658 GB, free: 15.68 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001476/0.3231, allocations: 143.3 kB / 0.5659 GB, free: 15.54 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000458/0.3236, allocations: 428.1 kB / 0.5663 GB, free: 15.12 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.3236, allocations: 4 kB / 0.5663 GB, free: 15.12 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3236, allocations: 3.938 kB / 0.5663 GB, free: 15.12 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.965e-06/0.3236, allocations: 4 kB / 0.5663 GB, free: 15.11 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001138/0.3247, allocations: 0.6027 MB / 0.5669 GB, free: 14.48 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.983e-05/0.3247, allocations: 8.031 kB / 0.5669 GB, free: 14.47 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.559e-05/0.3248, allocations: 9.188 kB / 0.5669 GB, free: 14.46 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.356e-05/0.3249, allocations: 78.72 kB / 0.567 GB, free: 14.38 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.957e-05/0.3249, allocations: 40.7 kB / 0.567 GB, free: 14.34 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004097/0.3253, allocations: 228.8 kB / 0.5673 GB, free: 14.09 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.702e-05/0.3254, allocations: 21.38 kB / 0.5673 GB, free: 14.07 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.348e-05/0.3254, allocations: 40.36 kB / 0.5673 GB, free: 14.03 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007215/0.3261, allocations: 353.9 kB / 0.5677 GB, free: 13.66 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.397e-05/0.3261, allocations: 3.938 kB / 0.5677 GB, free: 13.66 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.306e-05/0.3262, allocations: 16 kB / 0.5677 GB, free: 13.64 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.008e-05/0.3262, allocations: 12 kB / 0.5677 GB, free: 13.63 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006458/0.3268, allocations: 267.8 kB / 0.5679 GB, free: 13.37 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002126/0.329, allocations: 1.23 MB / 0.5691 GB, free: 12.05 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005373/0.3295, allocations: 190.5 kB / 0.5693 GB, free: 11.83 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002142/0.3297, allocations: 75.52 kB / 0.5694 GB, free: 11.74 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.969e-05/0.3297, allocations: 4 kB / 0.5694 GB, free: 11.74 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.891e-05/0.3298, allocations: 34.56 kB / 0.5694 GB, free: 11.7 MB / 414.1 MB Notification: Performance of pre-optimization done (n=15): time 2.505e-06/0.3298, allocations: 0 / 0.5694 GB, free: 11.7 MB / 414.1 MB Notification: Performance of matching and sorting (n=15): time 0.0008137/0.3306, allocations: 265.4 kB / 0.5697 GB, free: 11.43 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.194e-05/0.3307, allocations: 128.5 kB / 0.5698 GB, free: 11.27 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003919/0.3311, allocations: 341.7 kB / 0.5701 GB, free: 10.93 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.394e-05/0.3311, allocations: 25.7 kB / 0.5702 GB, free: 10.9 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002412/0.3313, allocations: 248.3 kB / 0.5704 GB, free: 10.65 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.153e-05/0.3314, allocations: 63.45 kB / 0.5705 GB, free: 10.59 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001016/0.3315, allocations: 57.94 kB / 0.5705 GB, free: 10.52 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001658/0.3317, allocations: 342.8 kB / 0.5708 GB, free: 10.18 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002275/0.3319, allocations: 84.44 kB / 0.5709 GB, free: 10.1 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002898/0.3322, allocations: 164.2 kB / 0.5711 GB, free: 9.898 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005024/0.3327, allocations: 250.9 kB / 0.5713 GB, free: 9.613 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-06/0.3327, allocations: 0 / 0.5713 GB, free: 9.613 MB / 414.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0006864/0.3334, allocations: 309.3 kB / 0.5716 GB, free: 9.305 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.644e-05/0.3334, allocations: 4 kB / 0.5716 GB, free: 9.301 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.034e-05/0.3334, allocations: 4 kB / 0.5716 GB, free: 9.297 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.183e-05/0.3334, allocations: 4.047 kB / 0.5716 GB, free: 9.293 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004307/0.3339, allocations: 100.1 kB / 0.5717 GB, free: 9.195 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.399e-05/0.3339, allocations: 7.938 kB / 0.5717 GB, free: 9.188 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002913/0.3342, allocations: 51.7 kB / 0.5718 GB, free: 9.137 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.395e-05/0.3342, allocations: 8.156 kB / 0.5718 GB, free: 9.129 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (34): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001893/0.3344, allocations: 153.7 kB / 0.5719 GB, free: 8.969 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001127/0.3345, allocations: 31.81 kB / 0.572 GB, free: 8.938 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.75e-05/0.3346, allocations: 34.5 kB / 0.572 GB, free: 8.902 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.382e-06/0.3346, allocations: 8 kB / 0.572 GB, free: 8.895 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.003e-06/0.3346, allocations: 0 / 0.572 GB, free: 8.895 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.542e-06/0.3346, allocations: 3.984 kB / 0.572 GB, free: 8.891 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009311/0.3355, allocations: 0.5321 MB / 0.5725 GB, free: 8.293 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.12e-06/0.3355, allocations: 4 kB / 0.5725 GB, free: 8.289 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002904/0.3358, allocations: 55.88 kB / 0.5726 GB, free: 8.234 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.107e-06/0.3358, allocations: 12.09 kB / 0.5726 GB, free: 8.223 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.968e-05/0.3359, allocations: 8.375 kB / 0.5726 GB, free: 8.215 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.996e-06/0.3359, allocations: 0 / 0.5726 GB, free: 8.215 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.056e-05/0.3359, allocations: 15.92 kB / 0.5726 GB, free: 8.199 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006266/0.3365, allocations: 398.7 kB / 0.573 GB, free: 7.777 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.016e-05/0.3366, allocations: 31.81 kB / 0.573 GB, free: 7.746 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.469e-05/0.3366, allocations: 7.922 kB / 0.573 GB, free: 7.738 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002488/0.3369, allocations: 23.98 kB / 0.5731 GB, free: 7.715 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.307e-05/0.3369, allocations: 7.984 kB / 0.5731 GB, free: 7.707 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.704e-05/0.337, allocations: 11.98 kB / 0.5731 GB, free: 7.695 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002953/0.3372, allocations: 235.2 kB / 0.5733 GB, free: 7.469 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3372, allocations: 0 / 0.5733 GB, free: 7.469 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004568/0.3377, allocations: 75.83 kB / 0.5734 GB, free: 7.395 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 simulation (15): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009856/0.3387, allocations: 0.9342 MB / 0.5743 GB, free: 6.414 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006026/0.3393, allocations: 191.6 kB / 0.5745 GB, free: 6.227 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.3393, allocations: 0.5 kB / 0.5745 GB, free: 6.227 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002252/0.3395, allocations: 83.88 kB / 0.5746 GB, free: 6.145 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004533/0.34, allocations: 24.53 kB / 0.5746 GB, free: 6.125 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004393/0.3444, allocations: 2.997 MB / 0.5775 GB, free: 2.945 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001899/0.3446, allocations: 168.8 kB / 0.5777 GB, free: 2.758 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001176/0.3447, allocations: 26.11 kB / 0.5777 GB, free: 2.734 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001859/0.3449, allocations: 107.4 kB / 0.5778 GB, free: 2.629 MB / 414.1 MB Notification: Performance of SimCode: time 8.22e-07/0.3449, allocations: 0 / 0.5778 GB, free: 2.629 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02525/0.3701, allocations: 5.268 MB / 0.5829 GB, free: 13.52 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.87/12.24, allocations: 18.33 kB / 0.583 GB, free: 13.51 MB / 430.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Sources.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Sources_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Magnetic_FluxTubes_Sources_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-05 ModelicaTest_4_1_0_ModelicaTest_Magnetic_FluxTubes_Sources.fmu > ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Sources_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Magnetic/FluxTubes/Sources/Sources.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Sources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.219500435050577]