Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.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.FundamentalWave.Examples.Components.SinglePhaseInductance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|converter_m.Phi.re|inductor_e.i",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance") translateModel(Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|converter_m.Phi.re|inductor_e.i",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001462/0.001463, allocations: 108.9 kB / 17.73 MB, free: 5.234 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.001884/0.001885, allocations: 188.1 kB / 18.66 MB, free: 4.309 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.398/1.398, allocations: 205.1 MB / 224.5 MB, free: 12.22 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.001132/0.001132, allocations: 56.39 kB / 328.5 MB, free: 3.312 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09674/0.09788, allocations: 46.62 MB / 375.1 MB, free: 4.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance): time 0.004478/0.1024, allocations: 3.244 MB / 378.4 MB, free: 1.324 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.2029/0.3053, allocations: 1.339 MB / 379.7 MB, free: 9.707 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005151/0.3059, allocations: 8.031 kB / 379.7 MB, free: 9.707 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005701/0.3066, allocations: 143.8 kB / 379.9 MB, free: 9.707 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001079/0.3077, allocations: 364.4 kB / 380.2 MB, free: 9.703 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000529/0.3082, allocations: 257.4 kB / 380.5 MB, free: 9.699 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005648/0.3088, allocations: 453.9 kB / 380.9 MB, free: 9.676 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002644/0.3091, allocations: 150.9 kB / 381.1 MB, free: 9.664 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001865/0.3092, allocations: 169.3 kB / 381.2 MB, free: 9.637 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002689/0.3095, allocations: 206.3 kB / 381.4 MB, free: 9.59 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.911e-05/0.3096, allocations: 34.38 kB / 381.5 MB, free: 9.59 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003741/0.31, allocations: 153.6 kB / 381.6 MB, free: 9.582 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.53e-05/0.31, allocations: 83.61 kB / 381.7 MB, free: 9.566 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002088/0.3103, allocations: 199.5 kB / 381.9 MB, free: 9.504 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000862/0.3111, allocations: 0.5298 MB / 382.4 MB, free: 9.418 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.021e-06/0.3111, allocations: 4.156 kB / 382.4 MB, free: 9.418 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.3112, allocations: 0 / 382.4 MB, free: 9.418 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.977e-06/0.3112, allocations: 0.5312 kB / 382.4 MB, free: 9.418 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001435/0.3126, allocations: 0.7385 MB / 383.2 MB, free: 8.934 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.138e-05/0.3127, allocations: 9.5 kB / 383.2 MB, free: 8.934 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006234/0.3133, allocations: 100.9 kB / 383.3 MB, free: 8.91 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003929/0.3137, allocations: 312.6 kB / 383.6 MB, free: 8.664 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.024e-05/0.3137, allocations: 26.97 kB / 383.6 MB, free: 8.66 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.674e-05/0.3138, allocations: 34.06 kB / 383.6 MB, free: 8.66 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005953/0.3144, allocations: 352.6 kB / 384 MB, free: 8.602 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.344e-05/0.3144, allocations: 8.625 kB / 384 MB, free: 8.594 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.369e-05/0.3145, allocations: 16.78 kB / 384 MB, free: 8.59 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.069e-05/0.3145, allocations: 8.688 kB / 384 MB, free: 8.59 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004681/0.315, allocations: 246.3 kB / 384.3 MB, free: 8.59 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001866/0.3168, allocations: 1.3 MB / 385.6 MB, free: 7.777 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004109/0.3173, allocations: 202.9 kB / 385.8 MB, free: 7.668 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000166/0.3174, allocations: 86.73 kB / 385.8 MB, free: 7.629 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006717/0.3181, allocations: 0.8634 MB / 386.7 MB, free: 6.773 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.228e-05/0.3182, allocations: 46.19 kB / 386.7 MB, free: 6.723 MB / 318.1 MB Notification: Performance of pre-optimization done (n=17): time 1.263e-06/0.3182, allocations: 1.969 kB / 386.7 MB, free: 6.723 MB / 318.1 MB Notification: Performance of matching and sorting (n=17): time 0.00055/0.3187, allocations: 216.4 kB / 387 MB, free: 6.629 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.63e-05/0.3188, allocations: 86.86 kB / 387 MB, free: 6.527 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002941/0.3191, allocations: 284.7 kB / 387.3 MB, free: 6.363 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.559e-05/0.3191, allocations: 26.95 kB / 387.3 MB, free: 6.332 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001146/0.3192, allocations: 236.1 kB / 387.6 MB, free: 6.133 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.054e-05/0.3192, allocations: 67.47 kB / 387.6 MB, free: 6.082 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.749e-05/0.3193, allocations: 67.11 kB / 387.7 MB, free: 6.035 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.401e-05/0.3194, allocations: 336.9 kB / 388 MB, free: 5.711 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001524/0.3196, allocations: 66.58 kB / 388.1 MB, free: 5.691 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002057/0.3198, allocations: 202 kB / 388.3 MB, free: 5.5 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000353/0.3201, allocations: 292.1 kB / 388.6 MB, free: 5.254 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.609e-06/0.3202, allocations: 1.969 kB / 388.6 MB, free: 5.254 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005115/0.3207, allocations: 313.5 kB / 388.9 MB, free: 5.117 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.918e-05/0.3207, allocations: 6.656 kB / 388.9 MB, free: 5.117 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.738e-06/0.3207, allocations: 5.469 kB / 388.9 MB, free: 5.117 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.19e-05/0.3207, allocations: 10.98 kB / 388.9 MB, free: 5.113 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003005/0.3211, allocations: 75.73 kB / 389 MB, free: 5.109 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.551e-05/0.3211, allocations: 11.47 kB / 389 MB, free: 5.105 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000194/0.3213, allocations: 46.03 kB / 389 MB, free: 5.074 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.528e-05/0.3213, allocations: 14.23 kB / 389.1 MB, free: 5.074 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (39): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001241/0.3214, allocations: 158.4 kB / 389.2 MB, free: 4.926 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.623e-05/0.3215, allocations: 25.25 kB / 389.2 MB, free: 4.914 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.354e-05/0.3216, allocations: 29.19 kB / 389.3 MB, free: 4.898 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.249e-06/0.3216, allocations: 3.094 kB / 389.3 MB, free: 4.898 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.3216, allocations: 8.484 kB / 389.3 MB, free: 4.891 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.688e-06/0.3216, allocations: 1.859 kB / 389.3 MB, free: 4.891 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006447/0.3223, allocations: 0.51 MB / 389.8 MB, free: 4.492 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.3223, allocations: 3.484 kB / 389.8 MB, free: 4.492 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000214/0.3225, allocations: 45.98 kB / 389.8 MB, free: 4.488 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.03e-06/0.3225, allocations: 5.938 kB / 389.8 MB, free: 4.484 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.65e-05/0.3225, allocations: 5.938 kB / 389.9 MB, free: 4.48 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.775e-06/0.3225, allocations: 1.406 kB / 389.9 MB, free: 4.48 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.3225, allocations: 2.219 kB / 389.9 MB, free: 4.48 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005024/0.323, allocations: 418.2 kB / 390.3 MB, free: 4.188 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.496e-05/0.3231, allocations: 101.4 kB / 390.4 MB, free: 4.078 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.031e-05/0.3232, allocations: 7.5 kB / 390.4 MB, free: 4.074 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002049/0.3234, allocations: 15.45 kB / 390.4 MB, free: 4.07 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.839e-05/0.3234, allocations: 13.66 kB / 390.4 MB, free: 4.066 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.393e-05/0.3234, allocations: 8.844 kB / 390.4 MB, free: 4.062 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001824/0.3236, allocations: 202.4 kB / 390.6 MB, free: 3.941 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3236, allocations: 1.125 kB / 390.6 MB, free: 3.941 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004289/0.3241, allocations: 85.78 kB / 390.7 MB, free: 3.918 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (inductor_e.i,converter_m.Phi.re) * 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 (17): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001468/0.3242, allocations: 113 kB / 390.8 MB, free: 3.82 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004144/0.3247, allocations: 184.2 kB / 391 MB, free: 3.766 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.3247, allocations: 0 / 391 MB, free: 3.766 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001399/0.3248, allocations: 73.58 kB / 391.1 MB, free: 3.742 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004228/0.3252, allocations: 42.11 kB / 391.1 MB, free: 3.723 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001072/0.3263, allocations: 0.6534 MB / 391.7 MB, free: 3.301 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002384/0.3266, allocations: 0.7722 MB / 392.5 MB, free: 2.602 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001165/0.3267, allocations: 32.34 kB / 392.6 MB, free: 2.598 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.117e-05/0.3268, allocations: 28.58 kB / 392.6 MB, free: 2.586 MB / 318.1 MB Notification: Performance of SimCode: time 2.5e-07/0.3268, allocations: 0 / 392.6 MB, free: 2.586 MB / 318.1 MB Notification: Performance of Templates: time 0.006487/0.3333, allocations: 2.381 MB / 395 MB, free: 2.359 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/Components/SinglePhaseInductance/SinglePhaseInductance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches