Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.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 4.0.0+maint.om/package.mo", uses=false) 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) 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.Electrical.Analog.Examples.CompareTransformers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=100000,variableFilter="time|basicTransformer.i1|basicTransformer.i2|inductor22.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers") translateModel(Modelica.Electrical.Analog.Examples.CompareTransformers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=100000,variableFilter="time|basicTransformer.i1|basicTransformer.i2|inductor22.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000743/0.000743, allocations: 91.84 kB / 17.31 MB, free: 5.59 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.0007936/0.0007937, allocations: 177.5 kB / 18.21 MB, free: 5.191 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.279/1.279, allocations: 223.3 MB / 242.3 MB, free: 80 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002247/0.0002247, allocations: 10 kB / 302.1 MB, free: 6.105 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07341/0.07365, allocations: 50.41 MB / 352.5 MB, free: 3.688 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CompareTransformers): time 0.003523/0.07721, allocations: 3.705 MB / 356.2 MB, free: 15.96 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001116/0.07834, allocations: 0.8685 MB / 357.1 MB, free: 15.08 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001626/0.07852, allocations: 12 kB / 357.1 MB, free: 15.07 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001539/0.07868, allocations: 67.45 kB / 357.1 MB, free: 15 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002957/0.07898, allocations: 154.8 kB / 357.3 MB, free: 14.85 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002674/0.07926, allocations: 119.9 kB / 357.4 MB, free: 14.73 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005523/0.07982, allocations: 0.6459 MB / 358.1 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002652/0.08009, allocations: 175.9 kB / 358.2 MB, free: 13.91 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002294/0.08033, allocations: 234.9 kB / 358.5 MB, free: 13.68 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002615/0.0806, allocations: 254.7 kB / 358.7 MB, free: 13.43 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.951e-05/0.08067, allocations: 32 kB / 358.7 MB, free: 13.39 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.778e-05/0.08074, allocations: 32 kB / 358.8 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.408e-05/0.08083, allocations: 107.5 kB / 358.9 MB, free: 13.26 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002246/0.08107, allocations: 300.2 kB / 359.2 MB, free: 12.96 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003627/0.08144, allocations: 470.8 kB / 359.6 MB, free: 12.5 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.08145, allocations: 4 kB / 359.6 MB, free: 12.49 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.08145, allocations: 0 / 359.6 MB, free: 12.49 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.312e-06/0.08147, allocations: 0 / 359.6 MB, free: 12.49 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.001184/0.08266, allocations: 0.7794 MB / 360.4 MB, free: 11.66 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.168e-05/0.0827, allocations: 8.031 kB / 360.4 MB, free: 11.66 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.443e-05/0.0828, allocations: 68.12 kB / 360.5 MB, free: 11.59 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003893/0.0832, allocations: 371.6 kB / 360.8 MB, free: 11.19 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.776e-05/0.08323, allocations: 37.38 kB / 360.9 MB, free: 11.15 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.086e-05/0.08331, allocations: 48.38 kB / 360.9 MB, free: 11.11 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007743/0.08409, allocations: 487.5 kB / 361.4 MB, free: 10.61 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.47e-05/0.08412, allocations: 4 kB / 361.4 MB, free: 10.61 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.717e-05/0.08417, allocations: 20 kB / 361.4 MB, free: 10.59 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.119e-05/0.08419, allocations: 16 kB / 361.4 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006278/0.08482, allocations: 336.3 kB / 361.8 MB, free: 10.25 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002507/0.08734, allocations: 1.713 MB / 363.5 MB, free: 8.434 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004324/0.08778, allocations: 273.1 kB / 363.8 MB, free: 8.148 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002423/0.08804, allocations: 149.6 kB / 363.9 MB, free: 7.996 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.189e-05/0.08807, allocations: 7.938 kB / 363.9 MB, free: 7.988 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.374e-05/0.0881, allocations: 34.56 kB / 363.9 MB, free: 7.945 MB / 302.1 MB Notification: Performance of pre-optimization done (n=31): time 1.613e-06/0.08811, allocations: 0 / 363.9 MB, free: 7.945 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.001771/0.08989, allocations: 0.9758 MB / 364.9 MB, free: 6.895 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.809e-05/0.08994, allocations: 81.11 kB / 365 MB, free: 6.797 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003798/0.09033, allocations: 377.7 kB / 365.4 MB, free: 6.414 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.874e-05/0.09036, allocations: 29.7 kB / 365.4 MB, free: 6.379 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001657/0.09054, allocations: 299.4 kB / 365.7 MB, free: 6.078 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.336e-05/0.09062, allocations: 114.3 kB / 365.8 MB, free: 5.965 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.469e-05/0.09068, allocations: 41.69 kB / 365.8 MB, free: 5.918 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001055/0.09079, allocations: 350.7 kB / 366.2 MB, free: 5.566 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002155/0.09101, allocations: 104.8 kB / 366.3 MB, free: 5.465 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002593/0.09128, allocations: 198.6 kB / 366.5 MB, free: 5.234 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004811/0.09177, allocations: 320.7 kB / 366.8 MB, free: 4.887 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.09178, allocations: 0 / 366.8 MB, free: 4.887 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0008211/0.09261, allocations: 464.6 kB / 367.2 MB, free: 4.422 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.692e-05/0.09264, allocations: 8 kB / 367.3 MB, free: 4.414 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.09265, allocations: 3.938 kB / 367.3 MB, free: 4.41 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003195/0.09297, allocations: 85.84 kB / 367.3 MB, free: 4.32 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003258/0.09331, allocations: 75.89 kB / 367.4 MB, free: 4.246 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002113/0.09543, allocations: 2.849 MB / 370.3 MB, free: 1.133 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002764/0.09572, allocations: 23.97 kB / 370.3 MB, free: 1.109 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.654e-05/0.09576, allocations: 19.98 kB / 370.3 MB, free: 1.09 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (45): * Single equations (assignments): 43 * 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,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001685/0.09593, allocations: 173.6 kB / 370.5 MB, free: 0.9102 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.626e-05/0.09602, allocations: 39.53 kB / 370.5 MB, free: 0.8711 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.79e-05/0.09611, allocations: 43.47 kB / 370.6 MB, free: 0.8242 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.038e-06/0.09612, allocations: 4 kB / 370.6 MB, free: 0.8203 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.09613, allocations: 4 kB / 370.6 MB, free: 0.8164 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.099e-06/0.09614, allocations: 7.984 kB / 370.6 MB, free: 0.8086 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.14/0.2361, allocations: 0.928 MB / 371.5 MB, free: 23.92 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.402e-06/0.2361, allocations: 1.875 kB / 371.5 MB, free: 23.92 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002268/0.2364, allocations: 49.91 kB / 371.6 MB, free: 23.92 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003159/0.2367, allocations: 81.53 kB / 371.6 MB, free: 23.9 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.851e-05/0.2367, allocations: 8.438 kB / 371.6 MB, free: 23.9 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001837/0.2386, allocations: 2.86 MB / 374.5 MB, free: 21.34 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.2386, allocations: 4.844 kB / 374.5 MB, free: 21.34 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009158/0.2395, allocations: 0.6252 MB / 375.1 MB, free: 21.12 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.411e-05/0.2396, allocations: 116.5 kB / 375.2 MB, free: 21.02 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.963e-05/0.2397, allocations: 6.031 kB / 375.2 MB, free: 21.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003631/0.2401, allocations: 37.66 kB / 375.3 MB, free: 21.02 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.74e-05/0.2401, allocations: 24.34 kB / 375.3 MB, free: 21.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.398e-05/0.2402, allocations: 8.719 kB / 375.3 MB, free: 21.02 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002877/0.2405, allocations: 276.7 kB / 375.6 MB, free: 20.94 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2405, allocations: 0 / 375.6 MB, free: 20.94 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000598/0.2411, allocations: 114.7 kB / 375.7 MB, free: 20.94 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (inductor22.i,basicTransformer.i1,basicTransformer.i2) * 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 (26): * Single equations (assignments): 24 * 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,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001026/0.2412, allocations: 118.1 kB / 375.8 MB, free: 20.85 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008299/0.242, allocations: 0.5189 MB / 376.3 MB, free: 20.62 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.242, allocations: 5.156 kB / 376.3 MB, free: 20.62 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005819/0.2426, allocations: 390.9 kB / 376.7 MB, free: 20.4 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005731/0.2432, allocations: 69.62 kB / 376.8 MB, free: 20.39 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001569/0.2448, allocations: 1.253 MB / 378 MB, free: 19.64 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000248/0.2451, allocations: 0.8359 MB / 378.9 MB, free: 18.93 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.678e-05/0.2452, allocations: 32.34 kB / 378.9 MB, free: 18.92 MB / 302.1 MB Notification: Performance of SimCode: time 3.51e-07/0.2452, allocations: 0 / 378.9 MB, free: 18.92 MB / 302.1 MB Notification: Performance of Templates: time 0.01131/0.2565, allocations: 8.812 MB / 387.7 MB, free: 16.3 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/CompareTransformers/CompareTransformers.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches