Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|magFluxSensor.Phi.re|magFluxSensor.Phi.im|voltageSensor.v.re|voltageSensor.v.im",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|magFluxSensor.Phi.re|magFluxSensor.Phi.im|voltageSensor.v.re|voltageSensor.v.im",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007581/0.0007577, allocations: 99.16 kB / 17.01 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000905/0.0009049, allocations: 192.7 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.305/1.305, allocations: 227.7 MB / 246.4 MB, free: 9.812 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002033/0.0002033, allocations: 8 kB / 307.1 MB, free: 0.9492 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08422/0.08444, allocations: 51.52 MB / 358.6 MB, free: 13.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap): time 0.005716/0.09019, allocations: 5.746 MB / 364.4 MB, free: 7.664 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003212/0.09342, allocations: 2.216 MB / 366.6 MB, free: 5.438 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002788/0.09371, allocations: 20 kB / 366.6 MB, free: 5.418 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005592/0.09428, allocations: 278.5 kB / 366.9 MB, free: 5.145 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009619/0.09525, allocations: 449.5 kB / 367.3 MB, free: 4.703 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001911/0.09717, allocations: 1.089 MB / 368.4 MB, free: 3.621 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000972/0.09815, allocations: 1.019 MB / 369.4 MB, free: 2.594 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002591/0.1008, allocations: 1.563 MB / 371 MB, free: 0.9961 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004289/0.1012, allocations: 398.4 kB / 371.4 MB, free: 0.6055 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005199/0.1017, allocations: 0.5291 MB / 371.9 MB, free: 76 kB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.067e-05/0.1018, allocations: 51.94 kB / 372 MB, free: 24 kB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1526/0.2544, allocations: 369.1 kB / 372.3 MB, free: 9.988 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001462/0.2546, allocations: 186.8 kB / 372.5 MB, free: 9.988 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002287/0.2548, allocations: 215.9 kB / 372.7 MB, free: 9.957 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001609/0.2564, allocations: 1.24 MB / 374 MB, free: 9.902 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.2564, allocations: 3.625 kB / 374 MB, free: 9.902 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.2565, allocations: 3.562 kB / 374 MB, free: 9.902 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.641e-05/0.2565, allocations: 0.8438 kB / 374 MB, free: 9.902 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: 328 * Number of variables: 328 Notification: Performance of Generate backend data structure: time 0.00554/0.262, allocations: 1.854 MB / 375.8 MB, free: 9.203 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.865e-05/0.2621, allocations: 9.422 kB / 375.8 MB, free: 9.203 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003404/0.2655, allocations: 0.515 MB / 376.3 MB, free: 9.145 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002558/0.2657, allocations: 300.8 kB / 376.6 MB, free: 8.891 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.39e-05/0.2658, allocations: 100.2 kB / 376.7 MB, free: 8.883 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002085/0.2661, allocations: 136.6 kB / 376.9 MB, free: 8.879 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002288/0.2684, allocations: 1.3 MB / 378.2 MB, free: 8.77 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.713e-05/0.2684, allocations: 2.062 kB / 378.2 MB, free: 8.77 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001087/0.2685, allocations: 55.94 kB / 378.2 MB, free: 8.766 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.484e-05/0.2686, allocations: 31.16 kB / 378.3 MB, free: 8.766 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002405/0.271, allocations: 1.213 MB / 379.5 MB, free: 8.746 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006046/0.277, allocations: 4.321 MB / 383.8 MB, free: 7.344 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002085/0.2791, allocations: 2.446 MB / 386.2 MB, free: 5.793 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008573/0.28, allocations: 0.5087 MB / 386.7 MB, free: 5.781 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001615/0.2802, allocations: 191.7 kB / 386.9 MB, free: 5.59 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.256e-05/0.2802, allocations: 42.69 kB / 387 MB, free: 5.551 MB / 302.1 MB Notification: Performance of pre-optimization done (n=122): time 3.526e-06/0.2802, allocations: 1.219 kB / 387 MB, free: 5.551 MB / 302.1 MB Notification: Performance of matching and sorting (n=125): time 0.009413/0.2896, allocations: 4.015 MB / 391 MB, free: 4.32 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.5e-05/0.2897, allocations: 91.61 kB / 391.1 MB, free: 4.223 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004524/0.2901, allocations: 397.8 kB / 391.5 MB, free: 4.004 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.855e-05/0.2902, allocations: 45.8 kB / 391.5 MB, free: 3.957 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001789/0.2904, allocations: 452.1 kB / 392 MB, free: 3.559 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002175/0.2906, allocations: 426.9 kB / 392.4 MB, free: 3.195 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.021e-05/0.2907, allocations: 26.28 kB / 392.4 MB, free: 3.176 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.487e-05/0.2908, allocations: 372.6 kB / 392.8 MB, free: 2.816 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009229/0.2917, allocations: 449.3 kB / 393.2 MB, free: 2.613 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001024/0.2928, allocations: 0.7152 MB / 393.9 MB, free: 2.086 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001001/0.2938, allocations: 0.5293 MB / 394.4 MB, free: 1.832 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.56e-06/0.2938, allocations: 10.7 kB / 394.5 MB, free: 1.824 MB / 302.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.002631/0.2964, allocations: 1.495 MB / 396 MB, free: 1.137 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.016e-05/0.2964, allocations: 7.594 kB / 396 MB, free: 1.137 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.308e-05/0.2965, allocations: 7.875 kB / 396 MB, free: 1.137 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004582/0.2969, allocations: 204.8 kB / 396.2 MB, free: 1.043 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001072/0.298, allocations: 303.1 kB / 396.5 MB, free: 0.9844 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003415/0.3014, allocations: 3.962 MB / 400.4 MB, free: 13.43 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008091/0.3023, allocations: 98.25 kB / 400.5 MB, free: 13.39 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.982e-05/0.3024, allocations: 51.17 kB / 400.6 MB, free: 13.38 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (146): * Single equations (assignments): 144 * 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%) 12,(1,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004054/0.3028, allocations: 265.4 kB / 400.8 MB, free: 13.17 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001103/0.3029, allocations: 62.66 kB / 400.9 MB, free: 13.14 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002713/0.3056, allocations: 1.39 MB / 402.3 MB, free: 12.38 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.928e-06/0.3056, allocations: 12.78 kB / 402.3 MB, free: 12.38 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.066e-06/0.3056, allocations: 7.203 kB / 402.3 MB, free: 12.37 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.111e-05/0.3057, allocations: 3.984 kB / 402.3 MB, free: 12.37 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00415/0.3098, allocations: 2.65 MB / 405 MB, free: 10.35 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.923e-06/0.3098, allocations: 4 kB / 405 MB, free: 10.34 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009292/0.3108, allocations: 226.8 kB / 405.2 MB, free: 10.13 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003831/0.3112, allocations: 163 kB / 405.3 MB, free: 9.973 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.884e-05/0.3112, allocations: 27.98 kB / 405.4 MB, free: 9.945 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003338/0.3146, allocations: 3.781 MB / 409.1 MB, free: 5.934 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.3146, allocations: 0 / 409.1 MB, free: 5.934 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003529/0.3181, allocations: 1.921 MB / 411.1 MB, free: 3.992 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002815/0.3184, allocations: 220.3 kB / 411.3 MB, free: 3.758 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001001/0.3185, allocations: 24 kB / 411.3 MB, free: 3.734 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006132/0.3192, allocations: 72.02 kB / 411.4 MB, free: 3.664 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001525/0.3193, allocations: 91.58 kB / 411.5 MB, free: 3.574 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.195e-05/0.3194, allocations: 32 kB / 411.5 MB, free: 3.543 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002693/0.3197, allocations: 271.2 kB / 411.8 MB, free: 3.281 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3197, allocations: 0 / 411.8 MB, free: 3.281 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001064/0.3207, allocations: 308.5 kB / 412.1 MB, free: 2.98 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 (currentSource.pin_p.reference.gamma) * 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 (106): * Single equations (assignments): 104 * 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%) 10,(1,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002655/0.321, allocations: 180.3 kB / 412.2 MB, free: 2.82 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002678/0.3237, allocations: 1.487 MB / 413.7 MB, free: 1.34 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.3237, allocations: 0 / 413.7 MB, free: 1.34 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001368/0.3251, allocations: 0.8903 MB / 414.6 MB, free: 456 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005027/0.3256, allocations: 69.5 kB / 414.7 MB, free: 388 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003711/0.3293, allocations: 2.381 MB / 417.1 MB, free: 13.96 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005319/0.3299, allocations: 1.013 MB / 418.1 MB, free: 12.92 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000731/0.3306, allocations: 138.6 kB / 418.2 MB, free: 12.78 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002377/0.3309, allocations: 71.42 kB / 418.3 MB, free: 12.71 MB / 334.1 MB Notification: Performance of SimCode: time 9.42e-07/0.3309, allocations: 0 / 418.3 MB, free: 12.71 MB / 334.1 MB Notification: Performance of Templates: time 0.01604/0.3469, allocations: 9.342 MB / 427.6 MB, free: 3.465 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.makefile (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/BasicExamples/QuadraticCoreAirgap/QuadraticCoreAirgap.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches