Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_cpp_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_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009204/0.0009204, allocations: 193.2 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.299/1.299, allocations: 226.6 MB / 244.3 MB, free: 8.297 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007737/0.0007741, allocations: 104.4 kB / 296.4 MB, free: 6.988 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002242/0.0002244, allocations: 4 kB / 356.2 MB, free: 11.19 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.224/0.2242, allocations: 51.28 MB / 407.5 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.002133/0.2264, allocations: 2.376 MB / 409.9 MB, free: 25.43 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008135/0.2272, allocations: 0.7215 MB / 410.6 MB, free: 24.71 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001239/0.2274, allocations: 4 kB / 410.6 MB, free: 24.71 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001312/0.2275, allocations: 53.36 kB / 410.6 MB, free: 24.66 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002031/0.2277, allocations: 75.44 kB / 410.7 MB, free: 24.58 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001844/0.2279, allocations: 80.19 kB / 410.8 MB, free: 24.51 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002172/0.2281, allocations: 358.2 kB / 411.2 MB, free: 24.16 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001511/0.2283, allocations: 104.1 kB / 411.3 MB, free: 24.05 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001871/0.2285, allocations: 138.6 kB / 411.4 MB, free: 23.92 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001257/0.2286, allocations: 147.3 kB / 411.5 MB, free: 23.78 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.348e-05/0.2287, allocations: 16 kB / 411.5 MB, free: 23.76 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.003e-05/0.2287, allocations: 20 kB / 411.6 MB, free: 23.74 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.187e-05/0.2287, allocations: 51.77 kB / 411.6 MB, free: 23.69 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.304e-05/0.2288, allocations: 81.58 kB / 411.7 MB, free: 23.61 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001733/0.229, allocations: 292.1 kB / 412 MB, free: 23.32 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.229, allocations: 4 kB / 412 MB, free: 23.32 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.229, allocations: 0 / 412 MB, free: 23.32 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.76e-06/0.229, allocations: 4 kB / 412 MB, free: 23.31 MB / 298.7 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.0008721/0.2299, allocations: 0.5963 MB / 412.6 MB, free: 22.67 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.322e-05/0.2299, allocations: 12.03 kB / 412.6 MB, free: 22.66 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.836e-05/0.23, allocations: 39.53 kB / 412.6 MB, free: 22.62 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002322/0.2302, allocations: 254.5 kB / 412.9 MB, free: 22.33 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.372e-05/0.2303, allocations: 24.66 kB / 412.9 MB, free: 22.3 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.001e-05/0.2303, allocations: 32 kB / 412.9 MB, free: 22.27 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005013/0.2308, allocations: 306 kB / 413.2 MB, free: 21.97 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.1e-05/0.2308, allocations: 0 / 413.2 MB, free: 21.97 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.41e-05/0.2309, allocations: 12 kB / 413.3 MB, free: 21.96 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.392e-06/0.2309, allocations: 4 kB / 413.3 MB, free: 21.96 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005285/0.2314, allocations: 270.5 kB / 413.5 MB, free: 21.69 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001296/0.2327, allocations: 1.12 MB / 414.6 MB, free: 20.46 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003183/0.233, allocations: 162.4 kB / 414.8 MB, free: 20.3 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001585/0.2332, allocations: 68.83 kB / 414.9 MB, free: 20.23 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.598e-05/0.2333, allocations: 4 kB / 414.9 MB, free: 20.22 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.284e-05/0.2333, allocations: 34.56 kB / 414.9 MB, free: 20.18 MB / 298.7 MB Notification: Performance of pre-optimization done (n=17): time 1.262e-06/0.2333, allocations: 0 / 414.9 MB, free: 20.18 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.00184/0.2351, allocations: 0.6809 MB / 415.6 MB, free: 19.49 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.19e-05/0.2352, allocations: 59.58 kB / 415.6 MB, free: 19.42 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000182/0.2353, allocations: 262.5 kB / 415.9 MB, free: 19.16 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.42e-05/0.2354, allocations: 29.7 kB / 415.9 MB, free: 19.12 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.994e-05/0.2354, allocations: 215.5 kB / 416.1 MB, free: 18.91 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.559e-05/0.2355, allocations: 86.83 kB / 416.2 MB, free: 18.82 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.189e-05/0.2355, allocations: 4 kB / 416.2 MB, free: 18.82 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.425e-05/0.2356, allocations: 342.8 kB / 416.6 MB, free: 18.47 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002468/0.2358, allocations: 99.94 kB / 416.7 MB, free: 18.38 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002764/0.2361, allocations: 211.9 kB / 416.9 MB, free: 18.12 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002662/0.2364, allocations: 133 kB / 417 MB, free: 17.99 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.2364, allocations: 0 / 417 MB, free: 17.99 MB / 298.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0006888/0.2371, allocations: 413.5 kB / 417.4 MB, free: 17.58 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.396e-05/0.2371, allocations: 4 kB / 417.4 MB, free: 17.57 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.623e-06/0.2371, allocations: 7.984 kB / 417.4 MB, free: 17.57 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002097/0.2373, allocations: 57.69 kB / 417.5 MB, free: 17.5 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002967/0.2376, allocations: 83.88 kB / 417.6 MB, free: 17.42 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00122/0.2389, allocations: 2.64 MB / 420.2 MB, free: 14.51 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002406/0.2391, allocations: 31.88 kB / 420.2 MB, free: 14.48 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.939e-05/0.2391, allocations: 16 kB / 420.2 MB, free: 14.46 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001099/0.2393, allocations: 146.5 kB / 420.4 MB, free: 14.31 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.935e-05/0.2393, allocations: 31.66 kB / 420.4 MB, free: 14.28 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.248e-05/0.2394, allocations: 34.17 kB / 420.4 MB, free: 14.25 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.804e-06/0.2394, allocations: 0 / 420.4 MB, free: 14.25 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.2394, allocations: 4 kB / 420.4 MB, free: 14.25 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.2394, allocations: 0 / 420.4 MB, free: 14.25 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002399/0.2396, allocations: 325.7 kB / 420.8 MB, free: 13.88 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.2396, allocations: 3.953 kB / 420.8 MB, free: 13.88 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002036/0.2398, allocations: 47.95 kB / 420.8 MB, free: 13.83 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001231/0.24, allocations: 49.69 kB / 420.9 MB, free: 13.77 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.285e-05/0.24, allocations: 4 kB / 420.9 MB, free: 13.77 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001079/0.2411, allocations: 2.628 MB / 423.5 MB, free: 10.88 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.542e-06/0.2411, allocations: 0 / 423.5 MB, free: 10.88 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000596/0.2417, allocations: 397.4 kB / 423.9 MB, free: 10.47 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.7e-05/0.2417, allocations: 100.8 kB / 424 MB, free: 10.35 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.593e-05/0.2418, allocations: 12 kB / 424 MB, free: 10.34 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001976/0.242, allocations: 23.97 kB / 424 MB, free: 10.32 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.157e-05/0.242, allocations: 15.94 kB / 424 MB, free: 10.3 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.1e-05/0.2421, allocations: 15.98 kB / 424 MB, free: 10.29 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001287/0.2422, allocations: 178 kB / 424.2 MB, free: 10.11 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2422, allocations: 0 / 424.2 MB, free: 10.11 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003074/0.2425, allocations: 76 kB / 424.3 MB, free: 10.04 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.852e-05/0.2426, allocations: 99.19 kB / 424.4 MB, free: 9.93 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000759/0.2434, allocations: 0.4977 MB / 424.9 MB, free: 9.406 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.2434, allocations: 0 / 424.9 MB, free: 9.406 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000395/0.2438, allocations: 357.3 kB / 425.2 MB, free: 9.031 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003181/0.2441, allocations: 26.81 kB / 425.3 MB, free: 9.008 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007886/0.2449, allocations: 0.6996 MB / 426 MB, free: 8.273 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001595/0.2451, allocations: 0.7752 MB / 426.7 MB, free: 7.473 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.186e-05/0.2452, allocations: 27.44 kB / 426.8 MB, free: 7.445 MB / 298.7 MB Notification: Performance of SimCode: time 2.41e-07/0.2452, allocations: 0 / 426.8 MB, free: 7.445 MB / 298.7 MB Notification: Performance of Templates: time 0.005667/0.2508, allocations: 5.837 MB / 432.6 MB, free: 1.609 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.makefile (rm -f Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & ./Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/ToroidalCoreAirgap/ToroidalCoreAirgap.csv","../files/Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches