Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.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.ToroidalCoreAirgap,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.ToroidalCoreAirgap") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,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.ToroidalCoreAirgap") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001112/0.001112, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001167/0.001167, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.359/1.359, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001126/0.001126, allocations: 54.59 kB / 306.9 MB, free: 0.5938 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08505/0.08619, allocations: 50.53 MB / 357.5 MB, free: 14.05 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.005942/0.09216, allocations: 5.051 MB / 362.5 MB, free: 8.977 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002992/0.09518, allocations: 2.144 MB / 364.7 MB, free: 6.82 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001942/0.0954, allocations: 16 kB / 364.7 MB, free: 6.805 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002769/0.09818, allocations: 1.408 MB / 366.1 MB, free: 5.395 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008769/0.09906, allocations: 417.4 kB / 366.5 MB, free: 4.984 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002021/0.1011, allocations: 1.201 MB / 367.7 MB, free: 3.785 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006992/0.1018, allocations: 0.7239 MB / 368.4 MB, free: 3.059 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000868/0.1027, allocations: 0.6575 MB / 369.1 MB, free: 2.387 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004157/0.1031, allocations: 330.8 kB / 369.4 MB, free: 2.062 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004589/0.1036, allocations: 430.3 kB / 369.8 MB, free: 1.641 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.169e-05/0.1037, allocations: 68 kB / 369.9 MB, free: 1.574 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007664/0.1045, allocations: 415.6 kB / 370.3 MB, free: 1.168 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001268/0.1046, allocations: 167.4 kB / 370.5 MB, free: 1.004 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003189/0.1049, allocations: 370.2 kB / 370.8 MB, free: 0.6406 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1489/0.2538, allocations: 1.2 MB / 372 MB, free: 11.63 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.2538, allocations: 0 / 372 MB, free: 11.63 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.2538, allocations: 0 / 372 MB, free: 11.63 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.731e-05/0.2539, allocations: 0.5625 kB / 372 MB, free: 11.63 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: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.004216/0.2581, allocations: 1.453 MB / 373.5 MB, free: 11.1 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.723e-05/0.2581, allocations: 9.344 kB / 373.5 MB, free: 11.1 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002694/0.2608, allocations: 389 kB / 373.9 MB, free: 11.06 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002167/0.2611, allocations: 257.7 kB / 374.1 MB, free: 10.82 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.583e-05/0.2611, allocations: 64.47 kB / 374.2 MB, free: 10.81 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001315/0.2613, allocations: 82 kB / 374.3 MB, free: 10.81 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001626/0.2629, allocations: 0.8678 MB / 375.1 MB, free: 10.74 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.755e-05/0.263, allocations: 4.969 kB / 375.1 MB, free: 10.73 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.465e-05/0.263, allocations: 36.14 kB / 375.2 MB, free: 10.73 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.929e-05/0.2631, allocations: 20.81 kB / 375.2 MB, free: 10.73 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001736/0.2648, allocations: 0.8015 MB / 376 MB, free: 10.72 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004263/0.2691, allocations: 3.048 MB / 379 MB, free: 9.457 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001081/0.2702, allocations: 0.9931 MB / 380 MB, free: 8.723 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005252/0.2707, allocations: 246.2 kB / 380.3 MB, free: 8.629 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001455/0.2709, allocations: 175.2 kB / 380.4 MB, free: 8.441 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.177e-05/0.2709, allocations: 39.69 kB / 380.5 MB, free: 8.395 MB / 302.1 MB Notification: Performance of pre-optimization done (n=58): time 2.244e-06/0.2709, allocations: 0 / 380.5 MB, free: 8.395 MB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.007073/0.278, allocations: 2.4 MB / 382.9 MB, free: 7.316 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.677e-05/0.278, allocations: 88.38 kB / 383 MB, free: 7.223 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000287/0.2783, allocations: 296.6 kB / 383.3 MB, free: 7.055 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.425e-05/0.2784, allocations: 36.3 kB / 383.3 MB, free: 7.016 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001434/0.2785, allocations: 358.8 kB / 383.7 MB, free: 6.727 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001097/0.2786, allocations: 214.6 kB / 383.9 MB, free: 6.566 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000212/0.2789, allocations: 150.6 kB / 384 MB, free: 6.484 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.263e-05/0.2789, allocations: 348.6 kB / 384.3 MB, free: 6.156 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007196/0.2797, allocations: 265.6 kB / 384.6 MB, free: 6.082 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008164/0.2805, allocations: 0.5095 MB / 385.1 MB, free: 5.691 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001469/0.282, allocations: 0.8068 MB / 385.9 MB, free: 5.191 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.371e-06/0.282, allocations: 6.031 kB / 385.9 MB, free: 5.188 MB / 302.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001916/0.2839, allocations: 0.8906 MB / 386.8 MB, free: 4.887 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.975e-05/0.2839, allocations: 8.969 kB / 386.8 MB, free: 4.887 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.3e-05/0.284, allocations: 11.95 kB / 386.8 MB, free: 4.883 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002234/0.2842, allocations: 67.45 kB / 386.9 MB, free: 4.855 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008145/0.285, allocations: 206.4 kB / 387.1 MB, free: 4.844 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0013/0.2863, allocations: 2.865 MB / 390 MB, free: 1.973 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006422/0.287, allocations: 64.56 kB / 390 MB, free: 1.957 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.608e-05/0.287, allocations: 36.62 kB / 390.1 MB, free: 1.949 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * 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 (95): * Single equations (assignments): 93 * 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.0002332/0.2873, allocations: 221.5 kB / 390.3 MB, free: 1.773 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.565e-05/0.2874, allocations: 40.91 kB / 390.3 MB, free: 1.754 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001712/0.2891, allocations: 0.7424 MB / 391.1 MB, free: 1.457 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.771e-06/0.2891, allocations: 5.875 kB / 391.1 MB, free: 1.457 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.2891, allocations: 4.016 kB / 391.1 MB, free: 1.457 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.302e-06/0.2891, allocations: 2.969 kB / 391.1 MB, free: 1.457 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002321/0.2915, allocations: 1.422 MB / 392.5 MB, free: 0.7344 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.2915, allocations: 0 / 392.5 MB, free: 0.7344 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006217/0.2921, allocations: 129 kB / 392.6 MB, free: 0.7305 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001414/0.2923, allocations: 57.83 kB / 392.7 MB, free: 0.7031 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.583e-05/0.2923, allocations: 14.97 kB / 392.7 MB, free: 0.6953 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001721/0.294, allocations: 2.853 MB / 395.6 MB, free: 13.84 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.294, allocations: 0 / 395.6 MB, free: 13.84 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002418/0.2965, allocations: 1.078 MB / 396.6 MB, free: 13.35 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001772/0.2967, allocations: 168.3 kB / 396.8 MB, free: 13.2 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.93e-05/0.2967, allocations: 13.98 kB / 396.8 MB, free: 13.2 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000486/0.2972, allocations: 46.03 kB / 396.9 MB, free: 13.19 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001122/0.2973, allocations: 46.58 kB / 396.9 MB, free: 13.18 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.523e-05/0.2974, allocations: 18.89 kB / 396.9 MB, free: 13.17 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002048/0.2976, allocations: 205 kB / 397.1 MB, free: 13.06 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2976, allocations: 4 kB / 397.1 MB, free: 13.05 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006791/0.2983, allocations: 175.7 kB / 397.3 MB, free: 13.03 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (58): * Single equations (assignments): 56 * 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.000229/0.2985, allocations: 154.7 kB / 397.4 MB, free: 12.93 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002202/0.3007, allocations: 0.929 MB / 398.4 MB, free: 12.51 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.3008, allocations: 7.5 kB / 398.4 MB, free: 12.5 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009836/0.3017, allocations: 0.5557 MB / 398.9 MB, free: 12.14 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000401/0.3022, allocations: 43.33 kB / 399 MB, free: 12.12 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002518/0.3047, allocations: 1.256 MB / 400.2 MB, free: 11.36 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004155/0.3051, allocations: 0.8807 MB / 401.1 MB, free: 10.58 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004387/0.3056, allocations: 88.22 kB / 401.2 MB, free: 10.53 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001441/0.3057, allocations: 43.11 kB / 401.2 MB, free: 10.52 MB / 318.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3057, allocations: 0 / 401.2 MB, free: 10.52 MB / 318.1 MB Notification: Performance of Templates: time 0.01117/0.3169, allocations: 6.374 MB / 407.6 MB, free: 6.109 MB / 318.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.makefile (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/BasicExamples/ToroidalCoreAirgap/ToroidalCoreAirgap.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches