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.001089/0.001089, allocations: 101.8 kB / 16.5 MB, free: 6.648 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.001123/0.001123, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.414/1.414, allocations: 222.9 MB / 241.1 MB, free: 15.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001122/0.001122, allocations: 47.59 kB / 299.9 MB, free: 6.352 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1209/0.122, allocations: 49.45 MB / 349.4 MB, free: 4.902 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CompareTransformers): time 0.007663/0.1298, allocations: 4.118 MB / 353.5 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002415/0.1323, allocations: 0.8685 MB / 354.4 MB, free: 15.88 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007401/0.133, allocations: 8 kB / 354.4 MB, free: 15.88 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004726/0.1336, allocations: 71.44 kB / 354.5 MB, free: 15.8 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007544/0.1344, allocations: 154.8 kB / 354.6 MB, free: 15.65 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005164/0.1349, allocations: 115.9 kB / 354.7 MB, free: 15.54 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00108/0.136, allocations: 0.646 MB / 355.4 MB, free: 14.89 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000389/0.1364, allocations: 171.9 kB / 355.5 MB, free: 14.71 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005572/0.137, allocations: 243 kB / 355.8 MB, free: 14.48 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005114/0.1375, allocations: 282.6 kB / 356 MB, free: 14.2 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001201/0.1376, allocations: 36 kB / 356.1 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001617/0.1378, allocations: 40 kB / 356.1 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000114/0.1379, allocations: 111.5 kB / 356.2 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003692/0.1383, allocations: 290.5 kB / 356.5 MB, free: 13.73 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007416/0.139, allocations: 0.6073 MB / 357.1 MB, free: 13.12 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.338e-06/0.1391, allocations: 0 / 357.1 MB, free: 13.12 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.1391, allocations: 0 / 357.1 MB, free: 13.12 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.441e-05/0.1391, allocations: 4 kB / 357.1 MB, free: 13.12 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.002197/0.1413, allocations: 0.8611 MB / 358 MB, free: 12.21 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.473e-05/0.1414, allocations: 8.031 kB / 358 MB, free: 12.2 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001943/0.1416, allocations: 60.28 kB / 358.1 MB, free: 12.14 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006757/0.1423, allocations: 367.6 kB / 358.4 MB, free: 11.74 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.62e-05/0.1424, allocations: 37.38 kB / 358.4 MB, free: 11.71 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001035/0.1425, allocations: 56.22 kB / 358.5 MB, free: 11.65 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001029/0.1435, allocations: 491.5 kB / 359 MB, free: 11.16 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.24e-05/0.1435, allocations: 0 / 359 MB, free: 11.16 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.759e-05/0.1436, allocations: 20 kB / 359 MB, free: 11.14 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.768e-05/0.1436, allocations: 12 kB / 359 MB, free: 11.12 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007408/0.1444, allocations: 328.3 kB / 359.3 MB, free: 10.8 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003083/0.1475, allocations: 1.693 MB / 361 MB, free: 9.012 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005098/0.148, allocations: 265.1 kB / 361.3 MB, free: 8.734 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002653/0.1483, allocations: 149.6 kB / 361.4 MB, free: 8.582 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.824e-05/0.1483, allocations: 4 kB / 361.4 MB, free: 8.578 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.811e-05/0.1484, allocations: 38.5 kB / 361.5 MB, free: 8.531 MB / 302.1 MB Notification: Performance of pre-optimization done (n=31): time 2.485e-06/0.1484, allocations: 0 / 361.5 MB, free: 8.531 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.002227/0.1506, allocations: 0.951 MB / 362.4 MB, free: 7.504 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.258e-05/0.1507, allocations: 81.11 kB / 362.5 MB, free: 7.406 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000479/0.1512, allocations: 381.6 kB / 362.9 MB, free: 7.02 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.37e-05/0.1512, allocations: 37.64 kB / 362.9 MB, free: 6.977 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002611/0.1515, allocations: 291.4 kB / 363.2 MB, free: 6.684 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.877e-05/0.1516, allocations: 110.4 kB / 363.3 MB, free: 6.574 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001291/0.1518, allocations: 81.97 kB / 363.4 MB, free: 6.488 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001671/0.1519, allocations: 350.7 kB / 363.7 MB, free: 6.137 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000222/0.1522, allocations: 104.8 kB / 363.8 MB, free: 6.035 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002801/0.1525, allocations: 198.5 kB / 364 MB, free: 5.801 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005088/0.153, allocations: 309 kB / 364.3 MB, free: 5.465 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.153, allocations: 4 kB / 364.3 MB, free: 5.461 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0008857/0.1539, allocations: 441.6 kB / 364.8 MB, free: 5.02 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.528e-05/0.1539, allocations: 8 kB / 364.8 MB, free: 5.012 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.356e-05/0.1539, allocations: 4 kB / 364.8 MB, free: 5.008 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003639/0.1543, allocations: 81.81 kB / 364.9 MB, free: 4.922 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003354/0.1546, allocations: 83.83 kB / 364.9 MB, free: 4.84 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002666/0.1573, allocations: 2.845 MB / 367.8 MB, free: 1.734 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003306/0.1577, allocations: 20.02 kB / 367.8 MB, free: 1.715 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.819e-05/0.1577, allocations: 12 kB / 367.8 MB, free: 1.703 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.0002739/0.158, allocations: 173.7 kB / 368 MB, free: 1.523 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001337/0.1581, allocations: 39.53 kB / 368 MB, free: 1.484 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.253e-05/0.1582, allocations: 43.47 kB / 368.1 MB, free: 1.438 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.332e-06/0.1582, allocations: 7.984 kB / 368.1 MB, free: 1.43 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.566e-05/0.1583, allocations: 4 kB / 368.1 MB, free: 1.426 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.05e-06/0.1583, allocations: 0 / 368.1 MB, free: 1.426 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001557/0.1598, allocations: 0.9426 MB / 369 MB, free: 432 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.1598, allocations: 0 / 369 MB, free: 432 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001894/0.16, allocations: 47.92 kB / 369.1 MB, free: 384 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002838/0.1603, allocations: 77.64 kB / 369.1 MB, free: 300 kB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.697e-05/0.1604, allocations: 7.984 kB / 369.1 MB, free: 292 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2651/0.4255, allocations: 2.848 MB / 372 MB, free: 22.58 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.659e-06/0.4256, allocations: 5.594 kB / 372 MB, free: 22.58 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001325/0.4269, allocations: 0.6115 MB / 372.6 MB, free: 22.35 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001638/0.4271, allocations: 119.4 kB / 372.7 MB, free: 22.25 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.647e-05/0.4271, allocations: 16.67 kB / 372.7 MB, free: 22.25 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004492/0.4276, allocations: 30.36 kB / 372.8 MB, free: 22.25 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001168/0.4277, allocations: 24.05 kB / 372.8 MB, free: 22.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.836e-05/0.4278, allocations: 10.64 kB / 372.8 MB, free: 22.25 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004149/0.4282, allocations: 275.6 kB / 373.1 MB, free: 22.17 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.4282, allocations: 0 / 373.1 MB, free: 22.17 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007023/0.4289, allocations: 115.7 kB / 373.2 MB, free: 22.17 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.0002027/0.4291, allocations: 115.3 kB / 373.3 MB, free: 22.09 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001044/0.4302, allocations: 0.5084 MB / 373.8 MB, free: 21.86 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.903e-06/0.4302, allocations: 1.469 kB / 373.8 MB, free: 21.86 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006025/0.4308, allocations: 388.6 kB / 374.2 MB, free: 21.64 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006783/0.4315, allocations: 63.64 kB / 374.3 MB, free: 21.63 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002012/0.4335, allocations: 1.154 MB / 375.4 MB, free: 20.96 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004293/0.4339, allocations: 0.8405 MB / 376.3 MB, free: 20.25 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002256/0.4342, allocations: 40.69 kB / 376.3 MB, free: 20.23 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.436e-05/0.4343, allocations: 28.72 kB / 376.3 MB, free: 20.23 MB / 302.1 MB Notification: Performance of SimCode: time 1.001e-06/0.4343, allocations: 0 / 376.3 MB, free: 20.23 MB / 302.1 MB Notification: Performance of Templates: time 0.0137/0.448, allocations: 4.426 MB / 380.7 MB, free: 19.96 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/CompareTransformers/CompareTransformers.csv","/var/lib/jenkins/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