Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001754/0.001754, allocations: 83.59 kB / 21.18 MB, free: 3.383 MB / 18.57 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.002222/0.002222, allocations: 165 kB / 24.56 MB, free: 8 kB / 18.57 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.125/1.125, allocations: 177.1 MB / 205 MB, free: 5.637 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3134/0.3134, allocations: 32.8 MB / 294.3 MB, free: 1.277 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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: translateModel(ModelicaTest.Magnetic.FluxTubes.Sources,tolerance=1e-05,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|constantSource.V_m|constantSource.Phi|signalSource.V_m|signalSource.Phi|constantSource1.Phi|constantSource1.V_m|signalSource1.Phi|signalSource1.V_m",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources") translateModel(ModelicaTest.Magnetic.FluxTubes.Sources,tolerance=1e-05,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|constantSource.V_m|constantSource.Phi|signalSource.V_m|signalSource.Phi|constantSource1.Phi|constantSource1.V_m|signalSource1.Phi|signalSource1.V_m",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.104e-06/2.104e-06, allocations: 0 / 376 MB, free: 4.703 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.142e-05/3.352e-05, allocations: 2.312 kB / 376 MB, free: 4.699 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Sources): time 0.003546/0.00358, allocations: 2.696 MB / 378.7 MB, free: 1.988 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001305/0.004885, allocations: 0.7865 MB / 379.5 MB, free: 1.195 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001749/0.00506, allocations: 4 kB / 379.5 MB, free: 1.191 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002531/0.005313, allocations: 75.36 kB / 379.6 MB, free: 1.117 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002525/0.005566, allocations: 111 kB / 379.7 MB, free: 1.008 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002837/0.005849, allocations: 115.8 kB / 379.8 MB, free: 0.8945 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.000386/0.006235, allocations: 430.3 kB / 380.2 MB, free: 484 kB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002138/0.006449, allocations: 99.83 kB / 380.3 MB, free: 380 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002461/0.006695, allocations: 231.5 kB / 380.5 MB, free: 148 kB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001523/0.006848, allocations: 123.6 kB / 380.6 MB, free: 24 kB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 6.928e-05/0.006917, allocations: 32.05 kB / 380.7 MB, free: 15.99 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.932e-05/0.006956, allocations: 32 kB / 380.7 MB, free: 15.96 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 5.419e-05/0.00701, allocations: 79.69 kB / 380.8 MB, free: 15.88 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 9.769e-05/0.007108, allocations: 119.7 kB / 380.9 MB, free: 15.77 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002878/0.007396, allocations: 282.8 kB / 381.2 MB, free: 15.49 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.007399, allocations: 0 / 381.2 MB, free: 15.49 MB / 362.7 MB Notification: Performance of FrontEnd: time 9.02e-07/0.0074, allocations: 0 / 381.2 MB, free: 15.49 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.276e-06/0.007408, allocations: 0 / 381.2 MB, free: 15.49 MB / 362.7 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.0007854/0.008194, allocations: 0.691 MB / 381.9 MB, free: 14.76 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.82e-05/0.008242, allocations: 15.98 kB / 381.9 MB, free: 14.75 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001031/0.008345, allocations: 68.66 kB / 382 MB, free: 14.68 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002948/0.00864, allocations: 231.4 kB / 382.2 MB, free: 14.42 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.643e-05/0.008666, allocations: 21.38 kB / 382.2 MB, free: 14.4 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.523e-05/0.008702, allocations: 40.36 kB / 382.2 MB, free: 14.36 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003986/0.0091, allocations: 311 kB / 382.5 MB, free: 14.03 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.144e-05/0.009112, allocations: 0 / 382.5 MB, free: 14.03 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.232e-05/0.009134, allocations: 12 kB / 382.6 MB, free: 14.02 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.398e-05/0.009148, allocations: 15.98 kB / 382.6 MB, free: 14 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002137/0.009362, allocations: 130.4 kB / 382.7 MB, free: 13.88 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001262/0.01062, allocations: 1.317 MB / 384 MB, free: 12.48 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003206/0.01094, allocations: 176.5 kB / 384.2 MB, free: 12.26 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.535e-05/0.01103, allocations: 54.86 kB / 384.2 MB, free: 12.19 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.943e-05/0.01106, allocations: 11.94 kB / 384.3 MB, free: 12.18 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.877e-05/0.01109, allocations: 41.33 kB / 384.3 MB, free: 12.12 MB / 362.7 MB Notification: Performance of pre-optimization done (n=15): time 1.894e-06/0.01109, allocations: 0 / 384.3 MB, free: 12.12 MB / 362.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003353/0.01143, allocations: 145.3 kB / 384.4 MB, free: 11.98 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.404e-05/0.01149, allocations: 132.5 kB / 384.6 MB, free: 11.82 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002585/0.01175, allocations: 338.2 kB / 384.9 MB, free: 11.47 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.846e-05/0.01177, allocations: 29.7 kB / 384.9 MB, free: 11.43 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001717/0.01194, allocations: 302.7 kB / 385.2 MB, free: 11.13 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.87e-05/0.01198, allocations: 55.58 kB / 385.3 MB, free: 11.08 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.546e-05/0.01205, allocations: 59.59 kB / 385.3 MB, free: 11.01 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000178/0.01223, allocations: 0.5158 MB / 385.8 MB, free: 10.48 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.164e-05/0.0123, allocations: 24.55 kB / 385.9 MB, free: 10.46 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001299/0.01243, allocations: 157 kB / 386 MB, free: 10.25 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001911/0.01262, allocations: 199.9 kB / 386.2 MB, free: 10 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.01263, allocations: 4.5 kB / 386.2 MB, free: 9.996 MB / 362.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0002524/0.01288, allocations: 229.2 kB / 386.4 MB, free: 9.766 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.729e-05/0.0129, allocations: 4 kB / 386.5 MB, free: 9.762 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/0.0129, allocations: 8 kB / 386.5 MB, free: 9.754 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.133e-05/0.01293, allocations: 7.984 kB / 386.5 MB, free: 9.746 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000182/0.01311, allocations: 75.89 kB / 386.5 MB, free: 9.672 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.117e-05/0.01312, allocations: 12.19 kB / 386.6 MB, free: 9.66 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001032/0.01322, allocations: 35.73 kB / 386.6 MB, free: 9.625 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.227e-05/0.01324, allocations: 15.98 kB / 386.6 MB, free: 9.609 MB / 362.7 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.0001071/0.01335, allocations: 176.5 kB / 386.8 MB, free: 9.426 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.864e-05/0.01341, allocations: 27.8 kB / 386.8 MB, free: 9.398 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.095e-05/0.01345, allocations: 33.58 kB / 386.8 MB, free: 9.367 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.781e-06/0.01346, allocations: 4 kB / 386.8 MB, free: 9.363 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.111e-06/0.01346, allocations: 0 / 386.8 MB, free: 9.363 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.192e-06/0.01347, allocations: 4 kB / 386.8 MB, free: 9.359 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005239/0.01399, allocations: 0.5925 MB / 387.4 MB, free: 8.703 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.01399, allocations: 4 kB / 387.4 MB, free: 8.699 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.909e-05/0.01409, allocations: 43.97 kB / 387.5 MB, free: 8.656 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.867e-06/0.0141, allocations: 11.88 kB / 387.5 MB, free: 8.645 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.169e-05/0.01411, allocations: 3.984 kB / 387.5 MB, free: 8.641 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.179e-06/0.01411, allocations: 4 kB / 387.5 MB, free: 8.637 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.01412, allocations: 0 / 387.5 MB, free: 8.637 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002663/0.01438, allocations: 445.4 kB / 387.9 MB, free: 8.16 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.998e-05/0.01441, allocations: 27.75 kB / 388 MB, free: 8.133 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.47e-05/0.01444, allocations: 8 kB / 388 MB, free: 8.125 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.853e-05/0.01453, allocations: 11.98 kB / 388 MB, free: 8.113 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.127e-05/0.01459, allocations: 23.91 kB / 388 MB, free: 8.09 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.953e-06/0.01459, allocations: 4 kB / 388 MB, free: 8.086 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001291/0.01472, allocations: 223 kB / 388.2 MB, free: 7.871 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01472, allocations: 0 / 388.2 MB, free: 7.871 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002522/0.01498, allocations: 75.84 kB / 388.3 MB, free: 7.797 MB / 362.7 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.0001054/0.01508, allocations: 107.1 kB / 388.4 MB, free: 7.68 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002304/0.01531, allocations: 111.4 kB / 388.5 MB, free: 7.566 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.01531, allocations: 4 kB / 388.5 MB, free: 7.562 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.342e-05/0.01537, allocations: 39.61 kB / 388.6 MB, free: 7.52 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003237/0.01569, allocations: 32.95 kB / 388.6 MB, free: 7.488 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007681/0.01646, allocations: 0.558 MB / 389.2 MB, free: 6.879 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.644e-05/0.01654, allocations: 87.97 kB / 389.2 MB, free: 6.773 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.778e-05/0.0166, allocations: 25.89 kB / 389.3 MB, free: 6.742 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.383e-05/0.01666, allocations: 16.5 kB / 389.3 MB, free: 6.727 MB / 362.7 MB Notification: Performance of SimCode: time 8.92e-07/0.01666, allocations: 0 / 389.3 MB, free: 6.727 MB / 362.7 MB Notification: Performance of Templates: time 0.004612/0.02127, allocations: 1.612 MB / 390.9 MB, free: 5.133 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.sim & ./ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/FluxTubes/Sources/Sources.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.540410803165287]