Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.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.Electrical.QuasiStatic.SinglePhase.Examples.Transformer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.pin_p.reference.gamma|voltageSource.pin_p.reference.gamma|idealTransformer.v1.re|idealTransformer.v1.im|idealTransformer.i1.re|idealTransformer.i1.im|idealTransformer.v2.re|idealTransformer.v2.im|idealTransformer.i2.re|idealTransformer.i2.im",fileNamePrefix="Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer") translateModel(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.pin_p.reference.gamma|voltageSource.pin_p.reference.gamma|idealTransformer.v1.re|idealTransformer.v1.im|idealTransformer.i1.re|idealTransformer.i1.im|idealTransformer.v2.re|idealTransformer.v2.im|idealTransformer.i2.re|idealTransformer.i2.im",fileNamePrefix="Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001397/0.001397, allocations: 104.5 kB / 17.85 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001295/0.001295, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.32/1.32, allocations: 227.4 MB / 246.9 MB, free: 10.72 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001134/0.001134, allocations: 63.05 kB / 306.9 MB, free: 1.027 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08116/0.08231, allocations: 50.54 MB / 357.4 MB, free: 14.49 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer): time 0.005785/0.08813, allocations: 5.593 MB / 363 MB, free: 8.867 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002789/0.09094, allocations: 1.857 MB / 364.9 MB, free: 7 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002468/0.09121, allocations: 20 kB / 364.9 MB, free: 6.98 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002955/0.09419, allocations: 1.529 MB / 366.4 MB, free: 5.449 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001212/0.09542, allocations: 0.5367 MB / 367 MB, free: 4.91 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007206/0.09615, allocations: 378.6 kB / 367.3 MB, free: 4.543 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006824/0.09684, allocations: 0.7666 MB / 368.1 MB, free: 3.77 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001137/0.09799, allocations: 0.7947 MB / 368.9 MB, free: 2.953 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004088/0.09841, allocations: 342.6 kB / 369.2 MB, free: 2.617 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004383/0.09886, allocations: 474.2 kB / 369.7 MB, free: 2.152 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.541e-05/0.09895, allocations: 64 kB / 369.8 MB, free: 2.09 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004509/0.09941, allocations: 235.8 kB / 370 MB, free: 1.859 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000117/0.09954, allocations: 167.3 kB / 370.2 MB, free: 1.695 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003118/0.09986, allocations: 409.9 kB / 370.6 MB, free: 1.293 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007752/0.1006, allocations: 0.9195 MB / 371.5 MB, free: 380 kB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.1007, allocations: 8 kB / 371.5 MB, free: 372 kB / 302.1 MB Notification: Performance of FrontEnd: time 7.52e-07/0.1007, allocations: 0 / 371.5 MB, free: 372 kB / 302.1 MB Notification: Performance of Transformations before backend: time 8.416e-06/0.1007, allocations: 0 / 371.5 MB, free: 372 kB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 246 * Number of variables: 246 Notification: Performance of Generate backend data structure: time 0.149/0.2497, allocations: 1.345 MB / 372.8 MB, free: 20.2 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.888e-05/0.2498, allocations: 9.469 kB / 372.8 MB, free: 20.2 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004691/0.2544, allocations: 0.6464 MB / 373.5 MB, free: 20.16 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005155/0.255, allocations: 420.1 kB / 373.9 MB, free: 19.91 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.763e-05/0.255, allocations: 72.81 kB / 374 MB, free: 19.89 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001349/0.2552, allocations: 94.98 kB / 374.1 MB, free: 19.86 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001739/0.2569, allocations: 0.9822 MB / 375 MB, free: 19.44 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.961e-05/0.257, allocations: 5 kB / 375 MB, free: 19.43 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.284e-05/0.2571, allocations: 48.75 kB / 375.1 MB, free: 19.4 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.467e-05/0.2571, allocations: 22.75 kB / 375.1 MB, free: 19.4 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001539/0.2586, allocations: 0.925 MB / 376 MB, free: 19.08 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004143/0.2628, allocations: 3.442 MB / 379.5 MB, free: 16.89 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001837/0.2647, allocations: 2.235 MB / 381.7 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004128/0.2651, allocations: 298.6 kB / 382 MB, free: 14.65 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001197/0.2652, allocations: 176.2 kB / 382.2 MB, free: 14.46 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.823e-05/0.2653, allocations: 48.56 kB / 382.2 MB, free: 14.41 MB / 302.1 MB Notification: Performance of pre-optimization done (n=65): time 2.815e-06/0.2653, allocations: 0.9375 kB / 382.2 MB, free: 14.41 MB / 302.1 MB Notification: Performance of matching and sorting (n=65): time 0.001283/0.2666, allocations: 0.7178 MB / 382.9 MB, free: 14.11 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.216e-05/0.2666, allocations: 111.5 kB / 383.1 MB, free: 13.98 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002478/0.2668, allocations: 275.6 kB / 383.3 MB, free: 13.82 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.48e-05/0.2669, allocations: 35.95 kB / 383.4 MB, free: 13.78 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001556/0.2671, allocations: 377.8 kB / 383.7 MB, free: 13.48 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001253/0.2672, allocations: 223.9 kB / 383.9 MB, free: 13.31 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001817/0.2674, allocations: 139.6 kB / 384.1 MB, free: 13.23 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.318e-05/0.2675, allocations: 350.1 kB / 384.4 MB, free: 12.9 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003866/0.2678, allocations: 221.8 kB / 384.6 MB, free: 12.82 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004464/0.2683, allocations: 437.7 kB / 385.1 MB, free: 12.48 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008537/0.2692, allocations: 0.6933 MB / 385.8 MB, free: 11.99 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.56e-06/0.2692, allocations: 6.188 kB / 385.8 MB, free: 11.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.00117/0.2704, allocations: 0.7477 MB / 386.5 MB, free: 11.66 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.407e-05/0.2704, allocations: 7.828 kB / 386.5 MB, free: 11.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.173e-05/0.2704, allocations: 6.656 kB / 386.5 MB, free: 11.66 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.657e-05/0.2704, allocations: 15.06 kB / 386.5 MB, free: 11.65 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006577/0.2711, allocations: 186.8 kB / 386.7 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.841e-05/0.2711, allocations: 16.05 kB / 386.7 MB, free: 11.63 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003696/0.2715, allocations: 77.8 kB / 386.8 MB, free: 11.58 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.365e-05/0.2716, allocations: 40.48 kB / 386.9 MB, free: 11.57 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * 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 (98): * Single equations (assignments): 98 * 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.0002367/0.2718, allocations: 226.7 kB / 387.1 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000105/0.2719, allocations: 39.22 kB / 387.1 MB, free: 11.36 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00113/0.2731, allocations: 0.6548 MB / 387.8 MB, free: 11.05 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.027e-05/0.2731, allocations: 8.219 kB / 387.8 MB, free: 11.05 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.301e-06/0.2731, allocations: 1.219 kB / 387.8 MB, free: 11.05 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.939e-06/0.2731, allocations: 3.938 kB / 387.8 MB, free: 11.05 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002107/0.2752, allocations: 1.491 MB / 389.3 MB, free: 10.26 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.2752, allocations: 0 / 389.3 MB, free: 10.26 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005324/0.2758, allocations: 136.4 kB / 389.4 MB, free: 10.25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.742e-06/0.2758, allocations: 2.625 kB / 389.4 MB, free: 10.25 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.455e-05/0.2758, allocations: 22.23 kB / 389.4 MB, free: 10.24 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.18e-06/0.2758, allocations: 4.031 kB / 389.4 MB, free: 10.24 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.2758, allocations: 3.938 kB / 389.4 MB, free: 10.23 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001348/0.2772, allocations: 1.111 MB / 390.6 MB, free: 9.594 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.085e-05/0.2773, allocations: 127.2 kB / 390.7 MB, free: 9.469 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.886e-05/0.2773, allocations: 12.16 kB / 390.7 MB, free: 9.461 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003335/0.2777, allocations: 22.06 kB / 390.7 MB, free: 9.453 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.496e-05/0.2778, allocations: 53.2 kB / 390.8 MB, free: 9.438 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.465e-05/0.2778, allocations: 22.89 kB / 390.8 MB, free: 9.43 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001665/0.278, allocations: 184.2 kB / 391 MB, free: 9.32 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.278, allocations: 0.75 kB / 391 MB, free: 9.32 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007136/0.2787, allocations: 220.1 kB / 391.2 MB, free: 9.258 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.pin_p.reference.gamma,voltageSource.pin_p.reference.gamma) * 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 (72): * Single equations (assignments): 72 * 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.000214/0.2789, allocations: 153.6 kB / 391.3 MB, free: 9.145 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009732/0.2799, allocations: 0.6093 MB / 391.9 MB, free: 8.93 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.2799, allocations: 5.469 kB / 391.9 MB, free: 8.926 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004171/0.2804, allocations: 303.3 kB / 392.2 MB, free: 8.824 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005362/0.2809, allocations: 39.67 kB / 392.3 MB, free: 8.801 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001844/0.2828, allocations: 1.641 MB / 393.9 MB, free: 7.684 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002994/0.2831, allocations: 0.8996 MB / 394.8 MB, free: 6.977 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001929/0.2833, allocations: 64.28 kB / 394.9 MB, free: 6.957 MB / 302.1 MB Notification: Performance of SimCode: time 3.6e-07/0.2833, allocations: 0 / 394.9 MB, free: 6.957 MB / 302.1 MB Notification: Performance of Templates: time 0.00809/0.2914, allocations: 7.221 MB / 402.1 MB, free: 2.207 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.makefile (rm -f Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe >> ../files/Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.sim & ./Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/QuasiStatic/SinglePhase/Examples/Transformer/Transformer.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches