Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.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.LinearInductor,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|coil.Phi|coil.i|r_mLeak.port_p.Phi|rootMeanSquare.mean.x|sourceQS.pin_p.reference.gamma",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|coil.Phi|coil.i|r_mLeak.port_p.Phi|rootMeanSquare.mean.x|sourceQS.pin_p.reference.gamma",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000797/0.0007969, allocations: 98.7 kB / 17 MB, free: 5.949 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008728/0.0008729, allocations: 194.5 kB / 17.9 MB, free: 5.555 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.35/1.35, allocations: 227.7 MB / 246.4 MB, free: 9.812 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003563/0.0003566, allocations: 4 kB / 307.1 MB, free: 0.957 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0961/0.09649, allocations: 51.53 MB / 358.6 MB, free: 13.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor): time 0.006194/0.1027, allocations: 5.617 MB / 364.3 MB, free: 7.781 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003927/0.1067, allocations: 2.357 MB / 366.6 MB, free: 5.418 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006101/0.1073, allocations: 20 kB / 366.6 MB, free: 5.398 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007861/0.1081, allocations: 274.5 kB / 366.9 MB, free: 5.129 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001305/0.1094, allocations: 441.5 kB / 367.3 MB, free: 4.695 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002038/0.1115, allocations: 1.003 MB / 368.3 MB, free: 3.695 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001468/0.113, allocations: 0.9928 MB / 369.3 MB, free: 2.695 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002242/0.1152, allocations: 1.183 MB / 370.5 MB, free: 1.465 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006095/0.1158, allocations: 362.6 kB / 370.9 MB, free: 1.109 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007485/0.1166, allocations: 469.9 kB / 371.3 MB, free: 0.6484 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001678/0.1168, allocations: 48 kB / 371.4 MB, free: 0.6016 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008831/0.1177, allocations: 351.6 kB / 371.7 MB, free: 264 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000174/0.1178, allocations: 167.3 kB / 371.9 MB, free: 96 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.1674/0.2852, allocations: 204.1 kB / 372.1 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001811/0.2871, allocations: 1.121 MB / 373.2 MB, free: 10.08 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.2871, allocations: 0 / 373.2 MB, free: 10.08 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.2871, allocations: 0.75 kB / 373.2 MB, free: 10.08 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.411e-05/0.2871, allocations: 1.25 kB / 373.2 MB, free: 10.08 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: 282 * Number of variables: 282 Notification: Performance of Generate backend data structure: time 0.003977/0.2911, allocations: 1.463 MB / 374.7 MB, free: 9.414 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.88e-05/0.2911, allocations: 9.656 kB / 374.7 MB, free: 9.414 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003239/0.2944, allocations: 0.4924 MB / 375.2 MB, free: 9.359 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006687/0.2951, allocations: 484.5 kB / 375.6 MB, free: 9.105 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.346e-05/0.2952, allocations: 85.41 kB / 375.7 MB, free: 9.102 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001952/0.2954, allocations: 112.9 kB / 375.8 MB, free: 9.098 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002024/0.2974, allocations: 0.9734 MB / 376.8 MB, free: 9.012 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.315e-05/0.2974, allocations: 3.156 kB / 376.8 MB, free: 9.012 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.527e-05/0.2975, allocations: 47.81 kB / 376.8 MB, free: 9.012 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.195e-05/0.2976, allocations: 26.12 kB / 376.9 MB, free: 9.012 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001866/0.2994, allocations: 0.9647 MB / 377.8 MB, free: 8.996 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00546/0.3049, allocations: 3.812 MB / 381.7 MB, free: 7.613 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001583/0.3065, allocations: 1.544 MB / 383.2 MB, free: 6.711 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006966/0.3072, allocations: 429.1 kB / 383.6 MB, free: 6.703 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001261/0.3074, allocations: 187.2 kB / 383.8 MB, free: 6.512 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007967/0.3082, allocations: 468.5 kB / 384.3 MB, free: 6.414 MB / 302.1 MB Notification: Performance of pre-optimization done (n=96): time 2.605e-06/0.3082, allocations: 2.906 kB / 384.3 MB, free: 6.414 MB / 302.1 MB Notification: Performance of matching and sorting (n=125): time 0.008151/0.3163, allocations: 4.043 MB / 388.3 MB, free: 5.418 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.622e-05/0.3164, allocations: 145.8 kB / 388.4 MB, free: 5.258 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004096/0.3168, allocations: 400.6 kB / 388.8 MB, free: 5.105 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.519e-05/0.3169, allocations: 47.36 kB / 388.9 MB, free: 5.059 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002067/0.3171, allocations: 426.7 kB / 389.3 MB, free: 4.727 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002276/0.3173, allocations: 418 kB / 389.7 MB, free: 4.406 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.364e-05/0.3174, allocations: 29.84 kB / 389.7 MB, free: 4.383 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.798e-05/0.3175, allocations: 375.1 kB / 390.1 MB, free: 4.043 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006761/0.3182, allocations: 350.9 kB / 390.4 MB, free: 3.91 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007677/0.3189, allocations: 0.5439 MB / 391 MB, free: 3.578 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007783/0.3197, allocations: 425.4 kB / 391.4 MB, free: 3.379 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.589e-06/0.3197, allocations: 0.9688 kB / 391.4 MB, free: 3.379 MB / 302.1 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.002371/0.3221, allocations: 1.381 MB / 392.8 MB, free: 2.812 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.069e-05/0.3222, allocations: 6.688 kB / 392.8 MB, free: 2.812 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.049e-05/0.3222, allocations: 3.938 kB / 392.8 MB, free: 2.812 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007836/0.323, allocations: 353 kB / 393.1 MB, free: 2.695 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000826/0.3238, allocations: 207.9 kB / 393.3 MB, free: 2.684 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006655/0.3305, allocations: 7.735 MB / 401.1 MB, free: 11.79 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006292/0.3311, allocations: 51.53 kB / 401.1 MB, free: 11.77 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.069e-05/0.3312, allocations: 46.44 kB / 401.2 MB, free: 11.75 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$PRE.rootMeanSquare.mean.y_last,rootMeanSquare.mean.y_last) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (114): * Single equations (assignments): 110 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 4,(1,100.0%) 2,(1,100.0%) 19,(1,100.0%) 19} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004232/0.3316, allocations: 265.9 kB / 401.4 MB, free: 11.55 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.802e-05/0.3317, allocations: 76.23 kB / 401.5 MB, free: 11.51 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002402/0.3341, allocations: 1.302 MB / 402.8 MB, free: 10.77 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.558e-06/0.3341, allocations: 12.94 kB / 402.8 MB, free: 10.77 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.434e-06/0.3342, allocations: 8.719 kB / 402.8 MB, free: 10.77 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.286e-05/0.3342, allocations: 3.984 kB / 402.8 MB, free: 10.77 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003865/0.338, allocations: 2.538 MB / 405.4 MB, free: 9.121 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.614e-06/0.3381, allocations: 7.406 kB / 405.4 MB, free: 9.117 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006485/0.3387, allocations: 160.1 kB / 405.5 MB, free: 9.086 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000718/0.3395, allocations: 324.4 kB / 405.9 MB, free: 8.918 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.264e-05/0.3395, allocations: 30.19 kB / 405.9 MB, free: 8.898 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007051/0.3466, allocations: 7.425 MB / 413.3 MB, free: 1.316 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.3466, allocations: 4.031 kB / 413.3 MB, free: 1.312 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003034/0.3496, allocations: 1.818 MB / 415.1 MB, free: 15.46 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000305/0.35, allocations: 228.2 kB / 415.4 MB, free: 15.22 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.55e-05/0.3501, allocations: 20 kB / 415.4 MB, free: 15.2 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004699/0.3505, allocations: 39.98 kB / 415.4 MB, free: 15.16 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001503/0.3507, allocations: 98.16 kB / 415.5 MB, free: 15.07 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.044e-05/0.3508, allocations: 39.98 kB / 415.5 MB, free: 15.03 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002921/0.3511, allocations: 279.2 kB / 415.8 MB, free: 14.75 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3511, allocations: 0 / 415.8 MB, free: 14.75 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001241/0.3523, allocations: 316 kB / 416.1 MB, free: 14.45 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (coil.i,rootMeanSquare.mean.x,sourceQS.pin_p.reference.gamma) * Number of discrete variables: 2 ($whenCondition1,rootMeanSquare.mean.y_last) * Number of discrete states: 1 (rootMeanSquare.mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (85): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 19,(1,100.0%) 2,(1,100.0%) 4,(1,100.0%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002684/0.3526, allocations: 174.3 kB / 416.3 MB, free: 14.29 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002456/0.3551, allocations: 1.611 MB / 417.9 MB, free: 12.65 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.3551, allocations: 1.062 kB / 417.9 MB, free: 12.65 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00153/0.3566, allocations: 1.151 MB / 419.1 MB, free: 11.47 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005448/0.3572, allocations: 80.56 kB / 419.1 MB, free: 11.39 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003552/0.3607, allocations: 2.396 MB / 421.5 MB, free: 8.965 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005803/0.3613, allocations: 1.028 MB / 422.6 MB, free: 7.906 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0005138/0.3619, allocations: 102.2 kB / 422.7 MB, free: 7.805 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001697/0.362, allocations: 55.42 kB / 422.7 MB, free: 7.75 MB / 334.1 MB Notification: Performance of SimCode: time 6.72e-07/0.362, allocations: 0 / 422.7 MB, free: 7.75 MB / 334.1 MB Notification: Performance of Templates: time 0.01825/0.3803, allocations: 10.17 MB / 432.9 MB, free: 13.65 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.makefile (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/LinearInductor/LinearInductor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches