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.0008572/0.0008572, allocations: 95.94 kB / 17.35 MB, free: 6.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009724/0.0009724, allocations: 204.3 kB / 18.28 MB, free: 5.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.2/1.2, allocations: 227.7 MB / 246.8 MB, free: 11.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002429/0.000243, allocations: 4 kB / 307.8 MB, free: 0.7148 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08983/0.09009, allocations: 51.52 MB / 359.4 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CompareTransformers): time 0.003488/0.09362, allocations: 3.73 MB / 363.1 MB, free: 9.441 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001249/0.09488, allocations: 0.9504 MB / 364 MB, free: 8.484 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001496/0.09505, allocations: 12 kB / 364.1 MB, free: 8.473 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001508/0.09521, allocations: 71.44 kB / 364.1 MB, free: 8.402 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002671/0.09548, allocations: 146.8 kB / 364.3 MB, free: 8.258 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003017/0.09579, allocations: 147.8 kB / 364.4 MB, free: 8.113 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005092/0.09631, allocations: 0.642 MB / 365.1 MB, free: 7.469 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000256/0.09657, allocations: 179.9 kB / 365.2 MB, free: 7.281 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002531/0.09684, allocations: 227 kB / 365.4 MB, free: 7.059 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002562/0.0971, allocations: 262.7 kB / 365.7 MB, free: 6.801 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.185e-05/0.09716, allocations: 32 kB / 365.7 MB, free: 6.77 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.211e-05/0.09726, allocations: 36 kB / 365.8 MB, free: 6.734 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.347e-05/0.09734, allocations: 107.5 kB / 365.9 MB, free: 6.629 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002212/0.09757, allocations: 300.2 kB / 366.2 MB, free: 6.328 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004669/0.09804, allocations: 0.6032 MB / 366.8 MB, free: 5.723 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.09805, allocations: 0 / 366.8 MB, free: 5.723 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.09806, allocations: 4 kB / 366.8 MB, free: 5.719 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.093e-06/0.09807, allocations: 0 / 366.8 MB, free: 5.719 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.001135/0.09921, allocations: 0.791 MB / 367.6 MB, free: 4.879 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.651e-05/0.09926, allocations: 8.031 kB / 367.6 MB, free: 4.871 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001258/0.09939, allocations: 107.8 kB / 367.7 MB, free: 4.758 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002575/0.09965, allocations: 92.17 kB / 367.8 MB, free: 4.668 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003987/0.1001, allocations: 379.6 kB / 368.1 MB, free: 4.258 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.354e-05/0.1001, allocations: 41.62 kB / 368.2 MB, free: 4.219 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.495e-05/0.1002, allocations: 48.38 kB / 368.2 MB, free: 4.172 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007493/0.1009, allocations: 0.5035 MB / 368.7 MB, free: 3.648 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.415e-05/0.101, allocations: 3.984 kB / 368.7 MB, free: 3.645 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.246e-05/0.101, allocations: 24 kB / 368.8 MB, free: 3.621 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.183e-05/0.101, allocations: 12 kB / 368.8 MB, free: 3.609 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005863/0.1016, allocations: 348.7 kB / 369.1 MB, free: 3.27 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002415/0.104, allocations: 1.752 MB / 370.9 MB, free: 1.414 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004105/0.1045, allocations: 269.1 kB / 371.1 MB, free: 1.133 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002241/0.1047, allocations: 145.6 kB / 371.3 MB, free: 0.9844 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.859e-05/0.1047, allocations: 8.25 kB / 371.3 MB, free: 0.9766 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.666e-05/0.1048, allocations: 46.5 kB / 371.3 MB, free: 0.9219 MB / 302.1 MB Notification: Performance of pre-optimization done (n=31): time 1.362e-06/0.1048, allocations: 0 / 371.3 MB, free: 0.9219 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.1353/0.2401, allocations: 0.9768 MB / 372.3 MB, free: 19.08 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.547e-05/0.2401, allocations: 83.44 kB / 372.4 MB, free: 18.99 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004486/0.2406, allocations: 392 kB / 372.8 MB, free: 18.88 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.339e-05/0.2406, allocations: 31.42 kB / 372.8 MB, free: 18.85 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001317/0.2407, allocations: 296.8 kB / 373.1 MB, free: 18.75 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.116e-05/0.2408, allocations: 116 kB / 373.2 MB, free: 18.71 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.434e-05/0.2409, allocations: 39.91 kB / 373.2 MB, free: 18.7 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.807e-05/0.2409, allocations: 349.2 kB / 373.6 MB, free: 18.38 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001979/0.2411, allocations: 106.9 kB / 373.7 MB, free: 18.38 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00022/0.2414, allocations: 196.4 kB / 373.9 MB, free: 18.28 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004103/0.2418, allocations: 319.3 kB / 374.2 MB, free: 18.18 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.2418, allocations: 1.25 kB / 374.2 MB, free: 18.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.000769/0.2426, allocations: 456 kB / 374.6 MB, free: 18.09 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.631e-05/0.2426, allocations: 5.656 kB / 374.6 MB, free: 18.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.276e-06/0.2426, allocations: 7.859 kB / 374.6 MB, free: 18.09 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003076/0.2429, allocations: 80.84 kB / 374.7 MB, free: 18.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002998/0.2432, allocations: 81.83 kB / 374.8 MB, free: 18.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001637/0.2449, allocations: 2.857 MB / 377.7 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002569/0.2451, allocations: 23.55 kB / 377.7 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.481e-05/0.2452, allocations: 19.59 kB / 377.7 MB, free: 15.45 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.0001492/0.2453, allocations: 175.5 kB / 377.9 MB, free: 15.32 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.749e-05/0.2454, allocations: 42.12 kB / 377.9 MB, free: 15.3 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.096e-05/0.2455, allocations: 45.41 kB / 378 MB, free: 15.29 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.78e-06/0.2455, allocations: 3.938 kB / 378 MB, free: 15.29 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.2455, allocations: 1.344 kB / 378 MB, free: 15.29 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.109e-06/0.2455, allocations: 3 kB / 378 MB, free: 15.29 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001166/0.2467, allocations: 0.9527 MB / 378.9 MB, free: 14.77 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.444e-06/0.2467, allocations: 1.375 kB / 378.9 MB, free: 14.77 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001683/0.2469, allocations: 51.2 kB / 379 MB, free: 14.76 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002305/0.2471, allocations: 86.11 kB / 379.1 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.896e-05/0.2472, allocations: 11.97 kB / 379.1 MB, free: 14.72 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001421/0.2486, allocations: 2.858 MB / 381.9 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.2486, allocations: 1.312 kB / 381.9 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007689/0.2494, allocations: 0.6247 MB / 382.6 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.102e-05/0.2494, allocations: 116.7 kB / 382.7 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.085e-05/0.2495, allocations: 6.781 kB / 382.7 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003174/0.2498, allocations: 36.09 kB / 382.7 MB, free: 11.42 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.483e-05/0.2499, allocations: 24.94 kB / 382.7 MB, free: 11.42 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.837e-05/0.2499, allocations: 11.58 kB / 382.7 MB, free: 11.41 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002357/0.2501, allocations: 277.6 kB / 383 MB, free: 11.27 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.2502, allocations: 1.156 kB / 383 MB, free: 11.27 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005272/0.2507, allocations: 117.2 kB / 383.1 MB, free: 11.26 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.0009112/0.2516, allocations: 1.191 MB / 384.3 MB, free: 10.34 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007162/0.2523, allocations: 0.5204 MB / 384.8 MB, free: 10.02 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.2523, allocations: 0 / 384.8 MB, free: 10.02 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00047/0.2528, allocations: 395.5 kB / 385.2 MB, free: 9.742 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000491/0.2533, allocations: 57.09 kB / 385.3 MB, free: 9.719 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004557/0.2579, allocations: 4.599 MB / 389.9 MB, free: 6.746 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002477/0.2582, allocations: 0.8469 MB / 390.7 MB, free: 6.035 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001689/0.2583, allocations: 44.97 kB / 390.8 MB, free: 6.023 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001725/0.2585, allocations: 174.5 kB / 390.9 MB, free: 5.891 MB / 302.1 MB Notification: Performance of SimCode: time 5.01e-07/0.2585, allocations: 0 / 390.9 MB, free: 5.891 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01882/0.2773, allocations: 8.336 MB / 399.3 MB, free: 3.293 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001259/0.2775, allocations: 230.2 kB / 399.5 MB, free: 3.043 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.764/2.041, allocations: 4 kB / 399.5 MB, free: 3.039 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