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.001418/0.001418, allocations: 113.2 kB / 20.43 MB, free: 1.449 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.001608/0.001608, allocations: 214.4 kB / 23.74 MB, free: 4.656 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.521/1.521, allocations: 230.6 MB / 257.5 MB, free: 7.996 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.2366/0.2366, allocations: 46.93 MB / 360.9 MB, free: 4.242 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Sources,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Magnetic_FluxTubes_Sources",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002209/0.002209, allocations: 71.89 kB / 0.4962 GB, free: 7.891 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3171/0.3194, allocations: 66.02 MB / 0.5606 GB, free: 4.465 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Sources): time 0.004522/0.3239, allocations: 2.719 MB / 0.5633 GB, free: 1.734 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00152/0.3254, allocations: 0.7866 MB / 0.5641 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002178/0.3256, allocations: 11.94 kB / 0.5641 GB, free: 0.9297 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002929/0.3259, allocations: 75.36 kB / 0.5641 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002891/0.3262, allocations: 111.2 kB / 0.5642 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003109/0.3265, allocations: 103.9 kB / 0.5643 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005235/0.327, allocations: 434.2 kB / 0.5648 GB, free: 224 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002328/0.3273, allocations: 95.86 kB / 0.5649 GB, free: 124 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002421/0.3275, allocations: 151.5 kB / 0.565 GB, free: 15.97 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002522/0.3278, allocations: 175.2 kB / 0.5652 GB, free: 15.8 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.393e-05/0.3278, allocations: 32 kB / 0.5652 GB, free: 15.77 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.805e-05/0.3279, allocations: 32 kB / 0.5652 GB, free: 15.74 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.65e-05/0.328, allocations: 79.7 kB / 0.5653 GB, free: 15.66 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001857/0.3281, allocations: 183 kB / 0.5655 GB, free: 15.48 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004828/0.3286, allocations: 432.1 kB / 0.5659 GB, free: 15.06 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.3286, allocations: 0 / 0.5659 GB, free: 15.06 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.3286, allocations: 0 / 0.5659 GB, free: 15.06 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.291e-05/0.3286, allocations: 0 / 0.5659 GB, free: 15.06 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.001158/0.3298, allocations: 0.6105 MB / 0.5665 GB, free: 14.42 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.252e-05/0.3298, allocations: 8.031 kB / 0.5665 GB, free: 14.41 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.394e-05/0.3299, allocations: 78.7 kB / 0.5666 GB, free: 14.32 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.354e-05/0.33, allocations: 44.64 kB / 0.5666 GB, free: 14.28 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003925/0.3304, allocations: 228.9 kB / 0.5668 GB, free: 14.03 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.182e-05/0.3304, allocations: 25.38 kB / 0.5669 GB, free: 14 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.794e-05/0.3305, allocations: 28.38 kB / 0.5669 GB, free: 13.98 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007001/0.3312, allocations: 362 kB / 0.5672 GB, free: 13.61 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.397e-05/0.3312, allocations: 0 / 0.5672 GB, free: 13.61 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.43e-05/0.3312, allocations: 20 kB / 0.5672 GB, free: 13.59 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.02e-05/0.3312, allocations: 8 kB / 0.5672 GB, free: 13.58 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006495/0.3319, allocations: 271.5 kB / 0.5675 GB, free: 13.32 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002163/0.3341, allocations: 1.292 MB / 0.5688 GB, free: 11.94 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004955/0.3345, allocations: 190.6 kB / 0.569 GB, free: 11.71 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002131/0.3348, allocations: 79.5 kB / 0.569 GB, free: 11.62 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.875e-05/0.3348, allocations: 4 kB / 0.569 GB, free: 11.62 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.65e-05/0.3348, allocations: 42.5 kB / 0.5691 GB, free: 11.57 MB / 414.1 MB Notification: Performance of pre-optimization done (n=15): time 1.674e-06/0.3348, allocations: 0 / 0.5691 GB, free: 11.57 MB / 414.1 MB Notification: Performance of matching and sorting (n=15): time 0.0007864/0.3356, allocations: 261.5 kB / 0.5693 GB, free: 11.31 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.408e-05/0.3357, allocations: 136.5 kB / 0.5695 GB, free: 11.14 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003881/0.3361, allocations: 337.7 kB / 0.5698 GB, free: 10.8 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.114e-05/0.3361, allocations: 29.7 kB / 0.5698 GB, free: 10.77 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001815/0.3363, allocations: 244.1 kB / 0.57 GB, free: 10.52 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.191e-05/0.3364, allocations: 59.52 kB / 0.5701 GB, free: 10.46 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.545e-05/0.3364, allocations: 57.94 kB / 0.5701 GB, free: 10.4 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001672/0.3366, allocations: 346.8 kB / 0.5705 GB, free: 10.05 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002413/0.3369, allocations: 76.5 kB / 0.5706 GB, free: 9.977 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002987/0.3372, allocations: 172.2 kB / 0.5707 GB, free: 9.77 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005333/0.3377, allocations: 246.9 kB / 0.571 GB, free: 9.488 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.3377, allocations: 0 / 0.571 GB, free: 9.488 MB / 414.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.000686/0.3384, allocations: 313 kB / 0.5712 GB, free: 9.176 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.957e-05/0.3384, allocations: 10.66 kB / 0.5713 GB, free: 9.168 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.3384, allocations: 0 / 0.5713 GB, free: 9.168 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.002e-05/0.3384, allocations: 8.25 kB / 0.5713 GB, free: 9.16 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004209/0.3388, allocations: 99.8 kB / 0.5714 GB, free: 9.062 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.06e-05/0.3389, allocations: 4 kB / 0.5714 GB, free: 9.059 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002769/0.3391, allocations: 47.7 kB / 0.5714 GB, free: 9.012 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.939e-05/0.3392, allocations: 12 kB / 0.5714 GB, free: 9 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.0001626/0.3393, allocations: 153.7 kB / 0.5716 GB, free: 8.84 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001084/0.3394, allocations: 35.81 kB / 0.5716 GB, free: 8.805 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.97e-05/0.3395, allocations: 30.5 kB / 0.5716 GB, free: 8.773 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.62e-06/0.3395, allocations: 4 kB / 0.5716 GB, free: 8.77 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.3395, allocations: 0 / 0.5716 GB, free: 8.77 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.755e-06/0.3395, allocations: 7.984 kB / 0.5716 GB, free: 8.762 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008521/0.3404, allocations: 0.5594 MB / 0.5722 GB, free: 8.137 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.83e-06/0.3404, allocations: 7.938 kB / 0.5722 GB, free: 8.129 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002808/0.3407, allocations: 55.94 kB / 0.5723 GB, free: 8.074 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.685e-06/0.3407, allocations: 4.375 kB / 0.5723 GB, free: 8.07 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.547e-05/0.3407, allocations: 7.938 kB / 0.5723 GB, free: 8.062 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.488e-06/0.3407, allocations: 4 kB / 0.5723 GB, free: 8.059 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.898e-06/0.3407, allocations: 4 kB / 0.5723 GB, free: 8.055 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005906/0.3413, allocations: 401.9 kB / 0.5727 GB, free: 7.633 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.854e-05/0.3413, allocations: 36.08 kB / 0.5727 GB, free: 7.598 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.918e-05/0.3414, allocations: 3.938 kB / 0.5727 GB, free: 7.594 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000238/0.3416, allocations: 23.97 kB / 0.5727 GB, free: 7.57 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.461e-05/0.3417, allocations: 15.92 kB / 0.5727 GB, free: 7.555 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.269e-05/0.3417, allocations: 7.984 kB / 0.5727 GB, free: 7.547 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002662/0.342, allocations: 243.2 kB / 0.573 GB, free: 7.312 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.342, allocations: 0 / 0.573 GB, free: 7.312 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004144/0.3424, allocations: 75.83 kB / 0.573 GB, free: 7.238 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.0008975/0.3433, allocations: 0.9304 MB / 0.574 GB, free: 6.262 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005441/0.3438, allocations: 195.6 kB / 0.5741 GB, free: 6.07 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.3438, allocations: 0 / 0.5741 GB, free: 6.07 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002252/0.344, allocations: 76.64 kB / 0.5742 GB, free: 5.996 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004318/0.3445, allocations: 25.42 kB / 0.5742 GB, free: 5.973 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004281/0.3488, allocations: 2.992 MB / 0.5772 GB, free: 2.797 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004653/0.3492, allocations: 0.783 MB / 0.5779 GB, free: 1.988 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001072/0.3493, allocations: 17.95 kB / 0.5779 GB, free: 1.969 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001693/0.3495, allocations: 107.4 kB / 0.578 GB, free: 1.863 MB / 414.1 MB Notification: Performance of SimCode: time 9.92e-07/0.3495, allocations: 0 / 0.578 GB, free: 1.863 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03374/0.3832, allocations: 5.272 MB / 0.5832 GB, free: 12.72 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.4/11.78, allocations: 15 kB / 0.5832 GB, free: 12.71 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: 14.718838948989287]