Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.CompareTransformers.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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CompareTransformers,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_CompareTransformers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CompareTransformers,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_CompareTransformers",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002108/0.002108, allocations: 106.8 kB / 17.33 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002455/0.002455, allocations: 205.8 kB / 18.26 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.468/1.468, allocations: 227.4 MB / 246.4 MB, free: 10.78 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001284/0.001284, allocations: 63.8 kB / 306.6 MB, free: 0.8242 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1079, allocations: 50.53 MB / 357.1 MB, free: 14.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CompareTransformers): time 0.006152/0.1141, allocations: 4.143 MB / 361.2 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002225/0.1163, allocations: 0.9503 MB / 362.2 MB, free: 9.172 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005625/0.1169, allocations: 8 kB / 362.2 MB, free: 9.164 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003786/0.1173, allocations: 67.45 kB / 362.3 MB, free: 9.098 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006737/0.118, allocations: 158.8 kB / 362.4 MB, free: 8.941 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005508/0.1186, allocations: 135.8 kB / 362.5 MB, free: 8.809 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009667/0.1196, allocations: 0.6693 MB / 363.2 MB, free: 8.137 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004027/0.12, allocations: 211 kB / 363.4 MB, free: 7.926 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000549/0.1206, allocations: 259 kB / 363.7 MB, free: 7.672 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000483/0.1211, allocations: 298.6 kB / 364 MB, free: 7.379 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00017/0.1212, allocations: 52 kB / 364 MB, free: 7.328 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001986/0.1214, allocations: 60 kB / 364.1 MB, free: 7.27 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001242/0.1216, allocations: 131.5 kB / 364.2 MB, free: 7.141 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003661/0.1219, allocations: 306.5 kB / 364.5 MB, free: 6.84 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007246/0.1227, allocations: 0.6385 MB / 365.1 MB, free: 6.199 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.1227, allocations: 0 / 365.1 MB, free: 6.199 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1227, allocations: 0 / 365.1 MB, free: 6.199 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.42e-05/0.1227, allocations: 0 / 365.1 MB, free: 6.199 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.001808/0.1245, allocations: 0.8767 MB / 366 MB, free: 5.27 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.808e-05/0.1246, allocations: 8.031 kB / 366 MB, free: 5.262 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001805/0.1248, allocations: 107.8 kB / 366.1 MB, free: 5.148 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003815/0.1252, allocations: 84.16 kB / 366.2 MB, free: 5.066 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005949/0.1258, allocations: 379.6 kB / 366.6 MB, free: 4.656 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.503e-05/0.1258, allocations: 45.69 kB / 366.6 MB, free: 4.613 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.972e-05/0.1259, allocations: 48.38 kB / 366.7 MB, free: 4.566 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008802/0.1268, allocations: 0.4957 MB / 367.2 MB, free: 4.051 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.471e-05/0.1268, allocations: 0 / 367.2 MB, free: 4.051 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.739e-05/0.1269, allocations: 24 kB / 367.2 MB, free: 4.027 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.181e-05/0.1269, allocations: 15.94 kB / 367.2 MB, free: 4.012 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006298/0.1276, allocations: 344.6 kB / 367.5 MB, free: 3.676 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002863/0.1304, allocations: 1.74 MB / 369.3 MB, free: 1.832 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004639/0.1309, allocations: 259.4 kB / 369.5 MB, free: 1.562 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002365/0.1312, allocations: 141.7 kB / 369.7 MB, free: 1.418 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.437e-05/0.1312, allocations: 4 kB / 369.7 MB, free: 1.414 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.522e-05/0.1312, allocations: 46.81 kB / 369.7 MB, free: 1.359 MB / 302.1 MB Notification: Performance of pre-optimization done (n=31): time 1.784e-06/0.1312, allocations: 0 / 369.7 MB, free: 1.359 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.001967/0.1332, allocations: 0.9648 MB / 370.7 MB, free: 328 kB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.82e-05/0.1333, allocations: 81.11 kB / 370.8 MB, free: 228 kB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2286/0.3619, allocations: 385.7 kB / 371.1 MB, free: 20.11 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001205/0.3621, allocations: 31.2 kB / 371.2 MB, free: 20.08 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003282/0.3624, allocations: 299.6 kB / 371.5 MB, free: 19.99 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002014/0.3627, allocations: 114.4 kB / 371.6 MB, free: 19.95 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002567/0.3629, allocations: 78.98 kB / 371.7 MB, free: 19.93 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001591/0.3631, allocations: 349.9 kB / 372 MB, free: 19.62 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005063/0.3636, allocations: 98.59 kB / 372.1 MB, free: 19.62 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004693/0.3641, allocations: 194.1 kB / 372.3 MB, free: 19.52 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008618/0.365, allocations: 309.2 kB / 372.6 MB, free: 19.42 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.193e-06/0.365, allocations: 0.7812 kB / 372.6 MB, free: 19.42 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001589/0.3666, allocations: 446.3 kB / 373 MB, free: 19.34 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.506e-05/0.3667, allocations: 6.797 kB / 373 MB, free: 19.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.122e-05/0.3667, allocations: 7.438 kB / 373 MB, free: 19.34 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006304/0.3674, allocations: 86.58 kB / 373.1 MB, free: 19.32 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006143/0.368, allocations: 77.47 kB / 373.2 MB, free: 19.31 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00307/0.3711, allocations: 3.127 MB / 376.3 MB, free: 16.28 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005402/0.3716, allocations: 23.08 kB / 376.3 MB, free: 16.27 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.972e-05/0.3717, allocations: 16.83 kB / 376.4 MB, free: 16.27 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.0003157/0.372, allocations: 174 kB / 376.5 MB, free: 16.11 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001559/0.3722, allocations: 45.36 kB / 376.6 MB, free: 16.09 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001252/0.3723, allocations: 46.61 kB / 376.6 MB, free: 16.05 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.007e-06/0.3724, allocations: 5.031 kB / 376.6 MB, free: 16.05 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.18e-05/0.3724, allocations: 1.406 kB / 376.6 MB, free: 16.05 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.308e-06/0.3724, allocations: 3.422 kB / 376.6 MB, free: 16.05 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002285/0.3747, allocations: 0.9393 MB / 377.6 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/0.3747, allocations: 0.5312 kB / 377.6 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003303/0.3751, allocations: 59.2 kB / 377.6 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004471/0.3755, allocations: 73.44 kB / 377.7 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.847e-05/0.3756, allocations: 11.92 kB / 377.7 MB, free: 15.42 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002719/0.3783, allocations: 3.127 MB / 380.8 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.3783, allocations: 1.375 kB / 380.8 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001438/0.3798, allocations: 0.6098 MB / 381.4 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001354/0.3799, allocations: 115 kB / 381.6 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.109e-05/0.38, allocations: 7.641 kB / 381.6 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006173/0.3807, allocations: 31.39 kB / 381.6 MB, free: 11.85 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001201/0.3808, allocations: 24.89 kB / 381.6 MB, free: 11.85 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.99e-05/0.3809, allocations: 13.31 kB / 381.6 MB, free: 11.84 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005141/0.3814, allocations: 274.4 kB / 381.9 MB, free: 11.7 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.3814, allocations: 0 / 381.9 MB, free: 11.7 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001079/0.3825, allocations: 118.7 kB / 382 MB, free: 11.69 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.001965/0.3845, allocations: 1.184 MB / 383.2 MB, free: 10.77 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001636/0.3861, allocations: 0.5221 MB / 383.7 MB, free: 10.45 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.32e-06/0.3862, allocations: 0 / 383.7 MB, free: 10.45 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000917/0.3871, allocations: 389.6 kB / 384.1 MB, free: 10.17 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009984/0.3881, allocations: 62.23 kB / 384.2 MB, free: 10.15 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01133/0.3995, allocations: 4.518 MB / 388.7 MB, free: 7.188 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000605/0.4001, allocations: 0.8428 MB / 389.5 MB, free: 6.484 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004263/0.4006, allocations: 44.48 kB / 389.6 MB, free: 6.469 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003455/0.4009, allocations: 174.9 kB / 389.7 MB, free: 6.336 MB / 302.1 MB Notification: Performance of SimCode: time 9.32e-07/0.401, allocations: 0 / 389.7 MB, free: 6.336 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04561/0.4466, allocations: 8.71 MB / 398.5 MB, free: 3.645 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002196/0.4469, allocations: 232.1 kB / 398.7 MB, free: 3.395 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.19/2.637, allocations: 3.375 kB / 398.7 MB, free: 3.395 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.CompareTransformers.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.CompareTransformers_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_CompareTransformers_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_CompareTransformers.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.CompareTransformers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches