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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=1000,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=1000,variableFilter="time|magFluxSensor.Phi|voltageSensor.v",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001785/0.001785, allocations: 109.7 kB / 17.16 MB, free: 6.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002204/0.002204, allocations: 198.9 kB / 18.08 MB, free: 5.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.99/1.99, allocations: 222.9 MB / 241.8 MB, free: 13.6 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002186/0.002186, allocations: 57.12 kB / 300.6 MB, free: 6.047 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1681/0.1703, allocations: 49.44 MB / 350.1 MB, free: 4.598 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.007536/0.1779, allocations: 2.838 MB / 352.9 MB, free: 1.738 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002288/0.1802, allocations: 0.7399 MB / 353.6 MB, free: 0.9922 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004009/0.1807, allocations: 4 kB / 353.6 MB, free: 0.9883 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004172/0.1811, allocations: 51.61 kB / 353.7 MB, free: 0.9375 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000624/0.1818, allocations: 79.44 kB / 353.8 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005229/0.1824, allocations: 99.89 kB / 353.9 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007547/0.1832, allocations: 362.6 kB / 354.2 MB, free: 416 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003653/0.1835, allocations: 107.5 kB / 354.3 MB, free: 304 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004589/0.184, allocations: 147.4 kB / 354.5 MB, free: 156 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004057/0.1845, allocations: 159.3 kB / 354.6 MB, free: 15.99 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001027/0.1846, allocations: 20 kB / 354.6 MB, free: 15.97 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001129/0.1847, allocations: 24 kB / 354.7 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001081/0.1848, allocations: 71.59 kB / 354.7 MB, free: 15.88 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002811/0.1851, allocations: 163.1 kB / 354.9 MB, free: 15.72 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004557/0.1856, allocations: 295.5 kB / 355.2 MB, free: 15.43 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.953e-06/0.1856, allocations: 0 / 355.2 MB, free: 15.43 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1856, allocations: 0 / 355.2 MB, free: 15.43 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.19e-05/0.1857, allocations: 0 / 355.2 MB, free: 15.43 MB / 302.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.002125/0.1878, allocations: 0.6432 MB / 355.8 MB, free: 14.74 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.529e-05/0.1879, allocations: 8.031 kB / 355.8 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001487/0.188, allocations: 32.56 kB / 355.9 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005586/0.1886, allocations: 264.3 kB / 356.1 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.396e-05/0.1887, allocations: 32.97 kB / 356.2 MB, free: 14.38 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.76e-05/0.1888, allocations: 28.38 kB / 356.2 MB, free: 14.35 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001189/0.19, allocations: 302.3 kB / 356.5 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.888e-05/0.19, allocations: 0 / 356.5 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.967e-05/0.1901, allocations: 8 kB / 356.5 MB, free: 14.04 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.652e-05/0.1901, allocations: 8 kB / 356.5 MB, free: 14.03 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001173/0.1913, allocations: 250.5 kB / 356.7 MB, free: 13.79 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003256/0.1946, allocations: 1.124 MB / 357.9 MB, free: 12.56 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007102/0.1953, allocations: 156.5 kB / 358 MB, free: 12.4 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003328/0.1957, allocations: 68.83 kB / 358.1 MB, free: 12.33 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.341e-05/0.1957, allocations: 4 kB / 358.1 MB, free: 12.33 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001668/0.1959, allocations: 30.56 kB / 358.1 MB, free: 12.29 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 4.067e-06/0.1959, allocations: 0 / 358.1 MB, free: 12.29 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.003839/0.1998, allocations: 0.5902 MB / 358.7 MB, free: 11.69 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.692e-05/0.1999, allocations: 55.39 kB / 358.8 MB, free: 11.62 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005669/0.2005, allocations: 270.4 kB / 359 MB, free: 11.35 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.346e-05/0.2005, allocations: 29.7 kB / 359.1 MB, free: 11.31 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000261/0.2008, allocations: 223.5 kB / 359.3 MB, free: 11.09 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001124/0.201, allocations: 74.91 kB / 359.4 MB, free: 11.02 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001882/0.2012, allocations: 69.61 kB / 359.4 MB, free: 10.94 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002008/0.2014, allocations: 330.8 kB / 359.7 MB, free: 10.61 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005094/0.2019, allocations: 95.94 kB / 359.8 MB, free: 10.52 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006278/0.2025, allocations: 196.1 kB / 360 MB, free: 10.28 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001108/0.2037, allocations: 301.1 kB / 360.3 MB, free: 9.941 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.881e-06/0.2037, allocations: 0 / 360.3 MB, free: 9.941 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.00163/0.2053, allocations: 388.9 kB / 360.7 MB, free: 9.551 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.053e-05/0.2054, allocations: 12.39 kB / 360.7 MB, free: 9.539 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.045e-05/0.2055, allocations: 12 kB / 360.7 MB, free: 9.527 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004463/0.2059, allocations: 53.69 kB / 360.8 MB, free: 9.469 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005686/0.2065, allocations: 71.83 kB / 360.8 MB, free: 9.398 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003534/0.21, allocations: 2.636 MB / 363.5 MB, free: 6.496 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005513/0.2106, allocations: 23.89 kB / 363.5 MB, free: 6.473 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.865e-05/0.2107, allocations: 16 kB / 363.5 MB, free: 6.457 MB / 302.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.0003094/0.211, allocations: 161.7 kB / 363.7 MB, free: 6.289 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001142/0.2112, allocations: 27.66 kB / 363.7 MB, free: 6.262 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001079/0.2113, allocations: 30.17 kB / 363.7 MB, free: 6.234 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.983e-06/0.2113, allocations: 4 kB / 363.7 MB, free: 6.23 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.588e-06/0.2113, allocations: 0 / 363.7 MB, free: 6.23 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.14e-06/0.2113, allocations: 0 / 363.7 MB, free: 6.23 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006376/0.212, allocations: 325.5 kB / 364.1 MB, free: 5.863 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.199e-06/0.212, allocations: 0 / 364.1 MB, free: 5.863 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003526/0.2124, allocations: 39.97 kB / 364.1 MB, free: 5.824 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002951/0.2127, allocations: 65.73 kB / 364.2 MB, free: 5.754 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.017e-05/0.2127, allocations: 8 kB / 364.2 MB, free: 5.746 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003053/0.2158, allocations: 2.624 MB / 366.8 MB, free: 2.859 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.843e-06/0.2158, allocations: 4.031 kB / 366.8 MB, free: 2.855 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001288/0.2171, allocations: 379.5 kB / 367.2 MB, free: 2.465 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001627/0.2173, allocations: 100.7 kB / 367.3 MB, free: 2.348 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.49e-05/0.2174, allocations: 8 kB / 367.3 MB, free: 2.34 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004153/0.2178, allocations: 15.92 kB / 367.3 MB, free: 2.324 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001168/0.218, allocations: 19.97 kB / 367.3 MB, free: 2.305 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.657e-05/0.218, allocations: 4 kB / 367.3 MB, free: 2.301 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003618/0.2184, allocations: 186 kB / 367.5 MB, free: 2.117 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.8e-07/0.2184, allocations: 0 / 367.5 MB, free: 2.117 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007962/0.2192, allocations: 72 kB / 367.6 MB, free: 2.047 MB / 302.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.0002172/0.2195, allocations: 111.1 kB / 367.7 MB, free: 1.93 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001855/0.2213, allocations: 485 kB / 368.1 MB, free: 1.43 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.33e-06/0.2214, allocations: 0 / 368.1 MB, free: 1.43 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009713/0.2223, allocations: 346 kB / 368.5 MB, free: 1.066 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007191/0.2231, allocations: 29.88 kB / 368.5 MB, free: 1.039 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002228/0.2253, allocations: 0.7112 MB / 369.2 MB, free: 296 kB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2661/0.4915, allocations: 0.7724 MB / 370 MB, free: 24.52 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002022/0.4917, allocations: 23.59 kB / 370 MB, free: 24.51 MB / 302.1 MB Notification: Performance of SimCode: time 1.973e-06/0.4918, allocations: 0.625 kB / 370 MB, free: 24.51 MB / 302.1 MB Notification: Performance of Templates: time 0.01643/0.5082, allocations: 5.85 MB / 375.9 MB, free: 24.04 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.makefile (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 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) 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) Reference file matches