Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00148/0.00148, allocations: 74.03 kB / 21.24 MB, free: 0.5547 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00152/0.00152, allocations: 153 kB / 24.49 MB, free: 3.727 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.374/1.374, allocations: 173.4 MB / 201.1 MB, free: 12.69 MB / 190.1 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|magFluxSensor.Phi|voltageSensor.v",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap") translateModel(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|magFluxSensor.Phi|voltageSensor.v",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001529/0.001529, allocations: 47.12 kB / 319.4 MB, free: 3.273 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07975/0.08128, allocations: 52.16 MB / 371.6 MB, free: 7.371 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.004067/0.08534, allocations: 2.642 MB / 374.2 MB, free: 4.715 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001177/0.08652, allocations: 0.7011 MB / 374.9 MB, free: 4.008 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001214/0.08664, allocations: 4 kB / 374.9 MB, free: 4.004 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002095/0.08685, allocations: 67.38 kB / 375 MB, free: 3.938 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002447/0.0871, allocations: 87.25 kB / 375.1 MB, free: 3.852 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002719/0.08737, allocations: 111.8 kB / 375.2 MB, free: 3.742 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004064/0.08777, allocations: 394.5 kB / 375.6 MB, free: 3.355 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001879/0.08796, allocations: 87.28 kB / 375.6 MB, free: 3.27 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002343/0.0882, allocations: 163.4 kB / 375.8 MB, free: 3.109 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002158/0.08841, allocations: 143.3 kB / 375.9 MB, free: 2.969 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.555e-05/0.08847, allocations: 36 kB / 376 MB, free: 2.934 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.763e-05/0.08853, allocations: 32 kB / 376 MB, free: 2.902 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.955e-05/0.08861, allocations: 79.64 kB / 376.1 MB, free: 2.824 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001447/0.08875, allocations: 135.4 kB / 376.2 MB, free: 2.691 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004181/0.08917, allocations: 402.3 kB / 376.6 MB, free: 2.297 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.925e-06/0.08917, allocations: 0 / 376.6 MB, free: 2.297 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.08917, allocations: 0 / 376.6 MB, free: 2.297 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.751e-06/0.08918, allocations: 0 / 376.6 MB, free: 2.297 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.00114/0.09032, allocations: 0.5714 MB / 377.2 MB, free: 1.695 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.689e-05/0.09036, allocations: 12.03 kB / 377.2 MB, free: 1.684 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.459e-05/0.09043, allocations: 40.7 kB / 377.2 MB, free: 1.645 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003534/0.09078, allocations: 213.9 kB / 377.4 MB, free: 1.41 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.379e-05/0.09082, allocations: 25.03 kB / 377.5 MB, free: 1.383 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.233e-05/0.09087, allocations: 28.38 kB / 377.5 MB, free: 1.355 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005939/0.09146, allocations: 298.3 kB / 377.8 MB, free: 1.059 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.211e-05/0.09148, allocations: 0 / 377.8 MB, free: 1.059 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.79e-05/0.0915, allocations: 19.94 kB / 377.8 MB, free: 1.039 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.678e-06/0.09151, allocations: 8 kB / 377.8 MB, free: 1.031 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006325/0.09215, allocations: 246.5 kB / 378.1 MB, free: 0.793 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001602/0.09375, allocations: 0.8713 MB / 378.9 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003977/0.09414, allocations: 146.5 kB / 379.1 MB, free: 15.7 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000193/0.09434, allocations: 64.81 kB / 379.1 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.069e-05/0.09437, allocations: 11.84 kB / 379.1 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.112e-05/0.0944, allocations: 38.56 kB / 379.2 MB, free: 15.58 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 3.206e-06/0.0944, allocations: 4 kB / 379.2 MB, free: 15.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.002111/0.09651, allocations: 0.5866 MB / 379.8 MB, free: 14.98 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.36e-05/0.09656, allocations: 59.39 kB / 379.8 MB, free: 14.91 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002809/0.09684, allocations: 261.8 kB / 380.1 MB, free: 14.64 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.114e-05/0.09686, allocations: 25.7 kB / 380.1 MB, free: 14.61 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001655/0.09702, allocations: 240 kB / 380.3 MB, free: 14.36 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.101e-05/0.09709, allocations: 79.27 kB / 380.4 MB, free: 14.29 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001033/0.09719, allocations: 69.64 kB / 380.5 MB, free: 14.21 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000152/0.09734, allocations: 342.8 kB / 380.8 MB, free: 13.87 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002969/0.09764, allocations: 91.94 kB / 380.9 MB, free: 13.78 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003665/0.098, allocations: 192.1 kB / 381.1 MB, free: 13.54 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006612/0.09867, allocations: 301.1 kB / 381.4 MB, free: 13.21 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.048e-06/0.09867, allocations: 4 kB / 381.4 MB, free: 13.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.000881/0.09955, allocations: 389.1 kB / 381.8 MB, free: 12.81 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.426e-05/0.09956, allocations: 4 kB / 381.8 MB, free: 12.81 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.45e-06/0.09957, allocations: 4 kB / 381.8 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002416/0.09981, allocations: 62.08 kB / 381.9 MB, free: 12.74 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003333/0.1001, allocations: 75.89 kB / 381.9 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002086/0.1022, allocations: 2.584 MB / 384.5 MB, free: 9.875 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002709/0.1025, allocations: 19.98 kB / 384.5 MB, free: 9.855 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.61e-05/0.1025, allocations: 12 kB / 384.5 MB, free: 9.844 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (37): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001515/0.1027, allocations: 157.6 kB / 384.7 MB, free: 9.68 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.244e-05/0.1027, allocations: 27.8 kB / 384.7 MB, free: 9.652 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.31e-05/0.1028, allocations: 34.27 kB / 384.8 MB, free: 9.621 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.873e-06/0.1028, allocations: 0 / 384.8 MB, free: 9.621 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-06/0.1028, allocations: 4.062 kB / 384.8 MB, free: 9.617 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.534e-06/0.1028, allocations: 7.984 kB / 384.8 MB, free: 9.609 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002913/0.1031, allocations: 221.2 kB / 385 MB, free: 9.363 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.1031, allocations: 7.938 kB / 385 MB, free: 9.355 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002192/0.1033, allocations: 39.97 kB / 385 MB, free: 9.316 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000151/0.1035, allocations: 49.67 kB / 385.1 MB, free: 9.262 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.523e-05/0.1035, allocations: 8 kB / 385.1 MB, free: 9.254 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002016/0.1055, allocations: 2.58 MB / 387.7 MB, free: 6.465 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.1055, allocations: 0 / 387.7 MB, free: 6.465 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007675/0.1063, allocations: 379.9 kB / 388 MB, free: 6.074 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.306e-05/0.1063, allocations: 19.84 kB / 388.1 MB, free: 6.055 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.956e-05/0.1064, allocations: 8 kB / 388.1 MB, free: 6.047 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002163/0.1066, allocations: 15.98 kB / 388.1 MB, free: 6.031 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.251e-05/0.1066, allocations: 15.97 kB / 388.1 MB, free: 6.016 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.652e-05/0.1066, allocations: 15.86 kB / 388.1 MB, free: 6 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001806/0.1068, allocations: 177.2 kB / 388.3 MB, free: 5.832 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1068, allocations: 4 kB / 388.3 MB, free: 5.828 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003946/0.1072, allocations: 76 kB / 388.4 MB, free: 5.754 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001042/0.1073, allocations: 102.5 kB / 388.5 MB, free: 5.648 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000937/0.1083, allocations: 473 kB / 388.9 MB, free: 5.16 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1083, allocations: 4 kB / 388.9 MB, free: 5.156 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005262/0.1088, allocations: 334.2 kB / 389.3 MB, free: 4.805 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003246/0.1091, allocations: 44.36 kB / 389.3 MB, free: 4.762 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00102/0.1101, allocations: 0.5498 MB / 389.8 MB, free: 4.184 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001528/0.1103, allocations: 164.8 kB / 390 MB, free: 4.008 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001163/0.1104, allocations: 22.3 kB / 390 MB, free: 3.98 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.367e-05/0.1105, allocations: 24.48 kB / 390.1 MB, free: 3.957 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1105, allocations: 0 / 390.1 MB, free: 3.957 MB / 350.1 MB Notification: Performance of Templates: time 0.006759/0.1172, allocations: 2.749 MB / 392.8 MB, free: 1.234 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & ./Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/ToroidalCoreAirgap/ToroidalCoreAirgap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.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: 4.699883463094011]