Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) 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_4.0.0_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_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000867/0.0008669, allocations: 176.4 kB / 17.4 MB, free: 4.418 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.257/1.257, allocations: 223.3 MB / 241.4 MB, free: 9.938 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007549/0.0007548, allocations: 87.89 kB / 292.6 MB, free: 10.53 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002871/0.0002872, allocations: 11.94 kB / 352.3 MB, free: 14.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1888/0.1891, allocations: 50.41 MB / 402.8 MB, free: 32.38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08902/0.2781, allocations: 82.53 MB / 485.3 MB, free: 13.73 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002169/0.2784, allocations: 83.95 kB / 485.4 MB, free: 13.65 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02444/0.3028, allocations: 10.14 MB / 495.5 MB, free: 3.414 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.883e-06/0.3029, allocations: 4 kB / 495.5 MB, free: 3.41 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.349e-05/0.3029, allocations: 4 kB / 495.5 MB, free: 3.406 MB / 362.7 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.001108/0.304, allocations: 0.6797 MB / 496.2 MB, free: 2.676 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.34e-05/0.304, allocations: 8.031 kB / 496.2 MB, free: 2.668 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004625/0.3045, allocations: 84.42 kB / 496.3 MB, free: 2.586 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003735/0.3049, allocations: 308.7 kB / 496.6 MB, free: 2.242 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.872e-05/0.3049, allocations: 25.38 kB / 496.6 MB, free: 2.219 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.223e-05/0.305, allocations: 36.38 kB / 496.6 MB, free: 2.184 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005524/0.3055, allocations: 357.8 kB / 497 MB, free: 1.824 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.27e-05/0.3056, allocations: 192 / 497 MB, free: 1.824 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.426e-05/0.3056, allocations: 19.94 kB / 497 MB, free: 1.805 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.088e-05/0.3056, allocations: 12 kB / 497 MB, free: 1.793 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004623/0.3061, allocations: 254.1 kB / 497.3 MB, free: 1.543 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001911/0.308, allocations: 1.342 MB / 498.6 MB, free: 104 kB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003747/0.3084, allocations: 189.3 kB / 498.8 MB, free: 15.89 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001591/0.3086, allocations: 97.61 kB / 498.9 MB, free: 15.79 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007575/0.3093, allocations: 0.8752 MB / 499.8 MB, free: 14.82 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.311e-05/0.3094, allocations: 34.56 kB / 499.8 MB, free: 14.78 MB / 378.7 MB Notification: Performance of pre-optimization done (n=17): time 1.313e-06/0.3094, allocations: 0 / 499.8 MB, free: 14.78 MB / 378.7 MB Notification: Performance of matching and sorting (n=17): time 0.0005145/0.3099, allocations: 225.3 kB / 0.4883 GB, free: 14.55 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.899e-05/0.31, allocations: 81.09 kB / 0.4884 GB, free: 14.45 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002713/0.3102, allocations: 283 kB / 0.4886 GB, free: 14.17 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.951e-05/0.3103, allocations: 33.7 kB / 0.4887 GB, free: 14.13 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001373/0.3104, allocations: 239.4 kB / 0.4889 GB, free: 13.89 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.305e-05/0.3105, allocations: 67.03 kB / 0.489 GB, free: 13.83 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.968e-05/0.3105, allocations: 15.94 kB / 0.489 GB, free: 13.81 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001111/0.3106, allocations: 334.8 kB / 0.4893 GB, free: 13.48 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001474/0.3108, allocations: 68.62 kB / 0.4894 GB, free: 13.41 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002211/0.311, allocations: 206.4 kB / 0.4896 GB, free: 13.14 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003932/0.3114, allocations: 299.5 kB / 0.4899 GB, free: 12.79 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.3114, allocations: 0 / 0.4899 GB, free: 12.79 MB / 378.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005106/0.3119, allocations: 312.9 kB / 0.4902 GB, free: 12.48 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.609e-05/0.312, allocations: 8.562 kB / 0.4902 GB, free: 12.47 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.336e-06/0.312, allocations: 8 kB / 0.4902 GB, free: 12.46 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.52e-05/0.312, allocations: 8 kB / 0.4902 GB, free: 12.46 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000282/0.3123, allocations: 79.89 kB / 0.4903 GB, free: 12.38 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.39e-05/0.3123, allocations: 15.88 kB / 0.4903 GB, free: 12.36 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002082/0.3125, allocations: 43.58 kB / 0.4903 GB, free: 12.32 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.179e-05/0.3125, allocations: 16 kB / 0.4903 GB, free: 12.3 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001464/0.3127, allocations: 153.7 kB / 0.4905 GB, free: 12.14 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.363e-05/0.3128, allocations: 27.7 kB / 0.4905 GB, free: 12.12 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.306e-05/0.3128, allocations: 29.73 kB / 0.4905 GB, free: 12.09 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.519e-06/0.3128, allocations: 4 kB / 0.4905 GB, free: 12.09 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.254e-06/0.3128, allocations: 3.938 kB / 0.4905 GB, free: 12.08 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.3129, allocations: 7.922 kB / 0.4905 GB, free: 12.07 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006774/0.3135, allocations: 0.5186 MB / 0.491 GB, free: 11.5 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.3136, allocations: 0 / 0.491 GB, free: 11.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002103/0.3138, allocations: 47.91 kB / 0.4911 GB, free: 11.45 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.128e-06/0.3138, allocations: 3.938 kB / 0.4911 GB, free: 11.45 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.62e-05/0.3138, allocations: 4.312 kB / 0.4911 GB, free: 11.44 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.3138, allocations: 0 / 0.4911 GB, free: 11.44 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.3138, allocations: 4 kB / 0.4911 GB, free: 11.44 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00052/0.3143, allocations: 434.2 kB / 0.4915 GB, free: 11 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.316e-05/0.3144, allocations: 104.8 kB / 0.4916 GB, free: 10.88 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.561e-05/0.3145, allocations: 16 kB / 0.4916 GB, free: 10.86 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002021/0.3147, allocations: 19.98 kB / 0.4917 GB, free: 10.84 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.276e-05/0.3147, allocations: 7.984 kB / 0.4917 GB, free: 10.83 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.129e-05/0.3147, allocations: 4 kB / 0.4917 GB, free: 10.83 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001826/0.3149, allocations: 198 kB / 0.4919 GB, free: 10.64 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3149, allocations: 0 / 0.4919 GB, free: 10.64 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004139/0.3154, allocations: 87.69 kB / 0.4919 GB, free: 10.55 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001616/0.3155, allocations: 131.2 kB / 0.4921 GB, free: 10.41 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003657/0.3159, allocations: 184.7 kB / 0.4922 GB, free: 10.23 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.3159, allocations: 0 / 0.4922 GB, free: 10.23 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001338/0.3161, allocations: 76.09 kB / 0.4923 GB, free: 10.16 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004286/0.3165, allocations: 36.77 kB / 0.4923 GB, free: 10.12 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001074/0.3176, allocations: 0.8135 MB / 0.4931 GB, free: 9.277 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000316/0.3179, allocations: 0.7716 MB / 0.4939 GB, free: 8.48 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001535/0.3181, allocations: 38.94 kB / 0.4939 GB, free: 8.441 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.231e-05/0.3181, allocations: 27.44 kB / 0.494 GB, free: 8.414 MB / 378.7 MB Notification: Performance of SimCode: time 6.01e-07/0.3181, allocations: 0 / 0.494 GB, free: 8.414 MB / 378.7 MB Notification: Performance of Templates: time 0.0053/0.3234, allocations: 2.248 MB / 0.4962 GB, free: 6.191 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/Components/SinglePhaseInductance/SinglePhaseInductance.csv","../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches