Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.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_3.2.3_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_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001265/0.001273, allocations: 113.2 kB / 17.73 MB, free: 5.32 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.001236/0.001236, allocations: 184.2 kB / 18.66 MB, free: 4.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.505/1.505, allocations: 205.1 MB / 224.5 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00128/0.00128, allocations: 51.92 kB / 328.5 MB, free: 3.289 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09245/0.09374, allocations: 46.62 MB / 375.1 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor): time 0.2296/0.3234, allocations: 6.44 MB / 381.6 MB, free: 9.66 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005249/0.3287, allocations: 2.596 MB / 384.2 MB, free: 8.938 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001055/0.3298, allocations: 19.97 kB / 384.2 MB, free: 8.938 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003593/0.3334, allocations: 1.277 MB / 385.5 MB, free: 8.301 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0033/0.3367, allocations: 0.7093 MB / 386.2 MB, free: 7.906 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002484/0.3392, allocations: 1.096 MB / 387.3 MB, free: 7.23 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001986/0.3412, allocations: 1.097 MB / 388.4 MB, free: 6.676 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001492/0.3427, allocations: 0.9088 MB / 389.3 MB, free: 6.207 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008013/0.3435, allocations: 448.8 kB / 389.7 MB, free: 5.988 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007514/0.3443, allocations: 0.5603 MB / 390.3 MB, free: 5.695 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001763/0.3445, allocations: 97.75 kB / 390.4 MB, free: 5.695 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001305/0.3458, allocations: 414.2 kB / 390.8 MB, free: 5.582 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002102/0.346, allocations: 233.5 kB / 391 MB, free: 5.422 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005453/0.3466, allocations: 0.5351 MB / 391.5 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002364/0.3489, allocations: 1.515 MB / 393.1 MB, free: 4.438 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.005e-06/0.349, allocations: 1.188 kB / 393.1 MB, free: 4.438 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.349, allocations: 0 / 393.1 MB, free: 4.438 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.647e-05/0.349, allocations: 0 / 393.1 MB, free: 4.438 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 291 * Number of variables: 291 Notification: Performance of Generate backend data structure: time 0.00489/0.3539, allocations: 1.649 MB / 394.7 MB, free: 3.488 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.776e-05/0.354, allocations: 9.062 kB / 394.7 MB, free: 3.488 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00409/0.3581, allocations: 0.5755 MB / 395.3 MB, free: 3.367 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009158/0.359, allocations: 0.4978 MB / 395.8 MB, free: 2.957 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.475e-05/0.3591, allocations: 88.86 kB / 395.9 MB, free: 2.914 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001979/0.3593, allocations: 115.9 kB / 396 MB, free: 2.875 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002255/0.3616, allocations: 1.011 MB / 397 MB, free: 2.445 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.62e-05/0.3616, allocations: 8.859 kB / 397 MB, free: 2.438 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001035/0.3617, allocations: 47.06 kB / 397.1 MB, free: 2.402 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.16e-05/0.3618, allocations: 26.66 kB / 397.1 MB, free: 2.402 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002016/0.3638, allocations: 1.025 MB / 398.1 MB, free: 2.051 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006243/0.37, allocations: 3.837 MB / 401.9 MB, free: 15.6 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002538/0.3726, allocations: 2.053 MB / 404 MB, free: 13.73 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008783/0.3735, allocations: 453.5 kB / 404.4 MB, free: 13.52 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001222/0.3737, allocations: 99.78 kB / 404.5 MB, free: 13.41 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009289/0.3746, allocations: 493.5 kB / 405 MB, free: 13.09 MB / 334.1 MB Notification: Performance of pre-optimization done (n=98): time 2.936e-06/0.3746, allocations: 0 / 405 MB, free: 13.09 MB / 334.1 MB Notification: Performance of matching and sorting (n=127): time 0.0102/0.3848, allocations: 4.021 MB / 409 MB, free: 10.73 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000146/0.385, allocations: 146.7 kB / 409.2 MB, free: 10.57 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006343/0.3857, allocations: 413.1 kB / 409.6 MB, free: 10.31 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.59e-05/0.3858, allocations: 47.05 kB / 409.6 MB, free: 10.27 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003589/0.3861, allocations: 445 kB / 410.1 MB, free: 9.871 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003338/0.3865, allocations: 424.7 kB / 410.5 MB, free: 9.5 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003358/0.3868, allocations: 218.3 kB / 410.7 MB, free: 9.371 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001545/0.387, allocations: 380.7 kB / 411.1 MB, free: 9.004 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000691/0.3877, allocations: 369.4 kB / 411.4 MB, free: 8.824 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009206/0.3886, allocations: 0.5853 MB / 412 MB, free: 8.383 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00165/0.3903, allocations: 0.9956 MB / 413 MB, free: 7.742 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.891e-06/0.3903, allocations: 1.031 kB / 413 MB, free: 7.742 MB / 334.1 MB Notification: Performance of matching and sorting (n=166) (initialization): time 0.002913/0.3932, allocations: 1.445 MB / 414.5 MB, free: 6.977 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.439e-05/0.3932, allocations: 8.25 kB / 414.5 MB, free: 6.977 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.348e-05/0.3933, allocations: 5.5 kB / 414.5 MB, free: 6.977 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009079/0.3942, allocations: 354 kB / 414.8 MB, free: 6.797 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000911/0.3951, allocations: 220.7 kB / 415 MB, free: 6.746 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008451/0.4036, allocations: 8.48 MB / 423.5 MB, free: 13.76 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001071/0.4047, allocations: 56.05 kB / 423.6 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.587e-05/0.4048, allocations: 47.98 kB / 423.6 MB, free: 13.66 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,rootMeanSquare.mean.y,$PRE.rootMeanSquare.mean.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (122): * Single equations (assignments): 118 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,4,100.0%), (1,2,100.0%), (1,19,100.0%), (1,19,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005642/0.4053, allocations: 261.6 kB / 423.9 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000138/0.4055, allocations: 75.06 kB / 423.9 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002531/0.408, allocations: 1.321 MB / 425.3 MB, free: 11.98 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.139e-05/0.4081, allocations: 16 kB / 425.3 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.096e-05/0.4081, allocations: 11.94 kB / 425.3 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.389e-05/0.4081, allocations: 7.969 kB / 425.3 MB, free: 11.94 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004284/0.4124, allocations: 2.558 MB / 427.9 MB, free: 9.305 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.222e-06/0.4124, allocations: 0 / 427.9 MB, free: 9.305 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007198/0.4131, allocations: 159.8 kB / 428 MB, free: 9.148 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008133/0.414, allocations: 323.3 kB / 428.3 MB, free: 8.82 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.589e-05/0.414, allocations: 32.92 kB / 428.4 MB, free: 8.789 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008452/0.4225, allocations: 8.098 MB / 436.5 MB, free: 136 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.983e-06/0.4225, allocations: 8.062 kB / 436.5 MB, free: 128 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003789/0.4263, allocations: 1.845 MB / 438.3 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000476/0.4268, allocations: 224.1 kB / 438.5 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000174/0.427, allocations: 28 kB / 438.6 MB, free: 13.97 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007192/0.4277, allocations: 44.05 kB / 438.6 MB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002395/0.428, allocations: 100.8 kB / 438.7 MB, free: 13.83 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.685e-05/0.4281, allocations: 35.98 kB / 438.7 MB, free: 13.79 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003633/0.4284, allocations: 283.1 kB / 439 MB, free: 13.52 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4285, allocations: 0 / 439 MB, free: 13.52 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00155/0.43, allocations: 316 kB / 439.3 MB, free: 13.21 MB / 366.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) * Number of discrete states: 1 (rootMeanSquare.mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (87): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,19,100.0%), (1,2,100.0%), (1,4,100.0%), (1,17,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003575/0.4304, allocations: 175 kB / 439.5 MB, free: 13.02 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003236/0.4336, allocations: 1.648 MB / 441.1 MB, free: 11.32 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/0.4336, allocations: 4.125 kB / 441.1 MB, free: 11.32 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001955/0.4356, allocations: 1.15 MB / 442.3 MB, free: 10.12 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007948/0.4364, allocations: 71.08 kB / 442.4 MB, free: 10.05 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00459/0.441, allocations: 1.968 MB / 444.3 MB, free: 8.039 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008548/0.4419, allocations: 1.028 MB / 445.4 MB, free: 6.984 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004924/0.4424, allocations: 110.4 kB / 445.5 MB, free: 6.871 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001809/0.4426, allocations: 59.42 kB / 445.5 MB, free: 6.812 MB / 366.1 MB Notification: Performance of SimCode: time 1.142e-06/0.4426, allocations: 4 kB / 445.5 MB, free: 6.809 MB / 366.1 MB Notification: Performance of Templates: time 0.02189/0.4645, allocations: 11.28 MB / 456.8 MB, free: 11.52 MB / 382.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.sim & ./Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/LinearInductor/LinearInductor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches