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.001052/0.001052, allocations: 108.5 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001111/0.001111, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.295/1.295, allocations: 227.4 MB / 246.3 MB, free: 10.73 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001095/0.001095, allocations: 55.88 kB / 306.4 MB, free: 0.9453 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08323/0.08434, allocations: 50.53 MB / 356.9 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CompareTransformers): time 0.004524/0.0889, allocations: 4.132 MB / 361 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001596/0.09052, allocations: 0.9619 MB / 362 MB, free: 9.281 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003135/0.09085, allocations: 11.94 kB / 362 MB, free: 9.27 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002126/0.09109, allocations: 67.5 kB / 362.1 MB, free: 9.203 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003286/0.09142, allocations: 154.8 kB / 362.2 MB, free: 9.051 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003647/0.09179, allocations: 135.8 kB / 362.3 MB, free: 8.918 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005409/0.09234, allocations: 0.6459 MB / 363 MB, free: 8.27 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002744/0.09263, allocations: 179.9 kB / 363.2 MB, free: 8.082 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002726/0.09291, allocations: 246.9 kB / 363.4 MB, free: 7.84 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002531/0.09317, allocations: 278.7 kB / 363.7 MB, free: 7.566 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.04e-05/0.09325, allocations: 36 kB / 363.7 MB, free: 7.531 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001112/0.09336, allocations: 43.98 kB / 363.8 MB, free: 7.488 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.318e-05/0.09346, allocations: 119.5 kB / 363.9 MB, free: 7.371 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002371/0.0937, allocations: 286.5 kB / 364.1 MB, free: 7.09 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004843/0.09419, allocations: 0.6113 MB / 364.8 MB, free: 6.477 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.377e-06/0.0942, allocations: 0 / 364.8 MB, free: 6.477 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.09421, allocations: 0 / 364.8 MB, free: 6.477 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.782e-06/0.09422, allocations: 0 / 364.8 MB, free: 6.477 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.001333/0.09556, allocations: 0.875 MB / 365.6 MB, free: 5.555 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.192e-05/0.0956, allocations: 12.03 kB / 365.6 MB, free: 5.543 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001437/0.09575, allocations: 115.7 kB / 365.8 MB, free: 5.422 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002827/0.09604, allocations: 88.17 kB / 365.8 MB, free: 5.336 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000413/0.09646, allocations: 371.6 kB / 366.2 MB, free: 4.934 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.117e-05/0.0965, allocations: 41.69 kB / 366.2 MB, free: 4.895 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.517e-05/0.09657, allocations: 48.38 kB / 366.3 MB, free: 4.848 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007974/0.09738, allocations: 0.4995 MB / 366.8 MB, free: 4.328 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.329e-05/0.0974, allocations: 0 / 366.8 MB, free: 4.328 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.577e-05/0.09745, allocations: 24 kB / 366.8 MB, free: 4.305 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.347e-05/0.09747, allocations: 12 kB / 366.8 MB, free: 4.293 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000619/0.0981, allocations: 344.7 kB / 367.2 MB, free: 3.957 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002605/0.1007, allocations: 1.736 MB / 368.9 MB, free: 2.117 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004228/0.1011, allocations: 265.1 kB / 369.2 MB, free: 1.84 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002284/0.1014, allocations: 149.2 kB / 369.3 MB, free: 1.691 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.054e-05/0.1014, allocations: 0 / 369.3 MB, free: 1.691 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.748e-05/0.1015, allocations: 42.81 kB / 369.3 MB, free: 1.641 MB / 302.1 MB Notification: Performance of pre-optimization done (n=31): time 3.337e-06/0.1015, allocations: 0 / 369.3 MB, free: 1.641 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.001807/0.1033, allocations: 0.9726 MB / 370.3 MB, free: 0.5898 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.532e-05/0.1033, allocations: 85.11 kB / 370.4 MB, free: 500 kB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003839/0.1037, allocations: 389.5 kB / 370.8 MB, free: 100 kB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.641e-05/0.1038, allocations: 33.7 kB / 370.8 MB, free: 60 kB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.1517/0.2555, allocations: 294.5 kB / 371.1 MB, free: 20.23 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001173/0.2556, allocations: 110.6 kB / 371.2 MB, free: 20.2 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001359/0.2558, allocations: 75.22 kB / 371.3 MB, free: 20.18 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.754e-05/0.2559, allocations: 348.1 kB / 371.6 MB, free: 19.87 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002556/0.2561, allocations: 101 kB / 371.7 MB, free: 19.87 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002563/0.2564, allocations: 193.4 kB / 371.9 MB, free: 19.77 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004459/0.2568, allocations: 303.2 kB / 372.2 MB, free: 19.67 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.26e-06/0.2568, allocations: 2.844 kB / 372.2 MB, free: 19.67 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0008686/0.2577, allocations: 451.2 kB / 372.7 MB, free: 19.58 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.131e-05/0.2578, allocations: 6.469 kB / 372.7 MB, free: 19.58 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.037e-06/0.2578, allocations: 5.5 kB / 372.7 MB, free: 19.58 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003475/0.2581, allocations: 80.41 kB / 372.7 MB, free: 19.56 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003291/0.2585, allocations: 88.31 kB / 372.8 MB, free: 19.55 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00176/0.2602, allocations: 2.846 MB / 375.7 MB, free: 16.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002909/0.2605, allocations: 29.22 kB / 375.7 MB, free: 16.8 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.056e-05/0.2606, allocations: 16.05 kB / 375.7 MB, free: 16.79 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.0001955/0.2608, allocations: 168.6 kB / 375.9 MB, free: 16.64 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.366e-05/0.2609, allocations: 42.38 kB / 375.9 MB, free: 16.62 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.878e-05/0.2609, allocations: 45.42 kB / 376 MB, free: 16.59 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.416e-06/0.261, allocations: 3.656 kB / 376 MB, free: 16.59 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/0.261, allocations: 2.344 kB / 376 MB, free: 16.59 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.322e-06/0.261, allocations: 7.062 kB / 376 MB, free: 16.59 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00136/0.2623, allocations: 0.9437 MB / 376.9 MB, free: 16 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.2624, allocations: 2 kB / 376.9 MB, free: 16 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000198/0.2626, allocations: 50.44 kB / 377 MB, free: 16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002656/0.2628, allocations: 82.55 kB / 377.1 MB, free: 15.96 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.349e-05/0.2629, allocations: 11.03 kB / 377.1 MB, free: 15.96 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001595/0.2645, allocations: 2.846 MB / 379.9 MB, free: 13.17 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.2645, allocations: 1.375 kB / 379.9 MB, free: 13.17 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008339/0.2653, allocations: 0.6089 MB / 380.5 MB, free: 12.79 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.944e-05/0.2654, allocations: 114.9 kB / 380.6 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.435e-05/0.2655, allocations: 7.141 kB / 380.6 MB, free: 12.67 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003345/0.2658, allocations: 28.52 kB / 380.7 MB, free: 12.67 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.704e-05/0.2659, allocations: 27.98 kB / 380.7 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.243e-05/0.2659, allocations: 12.5 kB / 380.7 MB, free: 12.66 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002915/0.2662, allocations: 274.1 kB / 381 MB, free: 12.52 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.2662, allocations: 0 / 381 MB, free: 12.52 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006099/0.2669, allocations: 117.9 kB / 381.1 MB, free: 12.5 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.0009619/0.2678, allocations: 1.176 MB / 382.3 MB, free: 11.58 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000784/0.2686, allocations: 0.5106 MB / 382.8 MB, free: 11.27 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.566e-06/0.2686, allocations: 0 / 382.8 MB, free: 11.27 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005197/0.2692, allocations: 393.6 kB / 383.2 MB, free: 10.99 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005699/0.2698, allocations: 64.78 kB / 383.2 MB, free: 10.96 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005175/0.2749, allocations: 4.509 MB / 387.7 MB, free: 8.012 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003035/0.2753, allocations: 0.8422 MB / 388.6 MB, free: 7.305 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001981/0.2755, allocations: 46.53 kB / 388.6 MB, free: 7.293 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001886/0.2757, allocations: 173.9 kB / 388.8 MB, free: 7.164 MB / 302.1 MB Notification: Performance of SimCode: time 6.52e-07/0.2757, allocations: 4 kB / 388.8 MB, free: 7.16 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02146/0.2971, allocations: 8.471 MB / 397.3 MB, free: 4.586 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001537/0.2973, allocations: 224.9 kB / 397.5 MB, free: 4.336 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.865/2.163, allocations: 0 / 397.5 MB, free: 4.336 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