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.001135/0.001135, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001246/0.001246, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.37/1.37, allocations: 227.4 MB / 246.8 MB, free: 10.58 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001339/0.001339, allocations: 64.77 kB / 307.1 MB, free: 0.5312 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0925/0.09386, allocations: 50.53 MB / 357.6 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CompareTransformers): time 0.005818/0.09972, allocations: 4.109 MB / 361.7 MB, free: 9.879 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002171/0.1019, allocations: 0.958 MB / 362.7 MB, free: 8.914 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004796/0.1024, allocations: 8 kB / 362.7 MB, free: 8.906 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003171/0.1028, allocations: 95.02 kB / 362.8 MB, free: 8.812 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005499/0.1033, allocations: 178.4 kB / 362.9 MB, free: 8.637 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005251/0.1039, allocations: 163.7 kB / 363.1 MB, free: 8.477 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008613/0.1048, allocations: 0.6654 MB / 363.8 MB, free: 7.809 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003385/0.1051, allocations: 211 kB / 364 MB, free: 7.598 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004052/0.1055, allocations: 259 kB / 364.2 MB, free: 7.344 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003913/0.1059, allocations: 294.6 kB / 364.5 MB, free: 7.055 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001019/0.106, allocations: 56 kB / 364.6 MB, free: 7 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001475/0.1062, allocations: 64 kB / 364.6 MB, free: 6.938 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000103/0.1063, allocations: 123.5 kB / 364.7 MB, free: 6.816 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003071/0.1066, allocations: 310.5 kB / 365 MB, free: 6.512 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005793/0.1072, allocations: 0.6385 MB / 365.7 MB, free: 5.871 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.1072, allocations: 4 kB / 365.7 MB, free: 5.867 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1072, allocations: 0 / 365.7 MB, free: 5.867 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.685e-05/0.1072, allocations: 3.938 kB / 365.7 MB, free: 5.863 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.001476/0.1087, allocations: 0.865 MB / 366.6 MB, free: 4.945 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.929e-05/0.1088, allocations: 12.02 kB / 366.6 MB, free: 4.934 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001366/0.1089, allocations: 107.8 kB / 366.7 MB, free: 4.82 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002919/0.1092, allocations: 84.16 kB / 366.8 MB, free: 4.738 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004706/0.1097, allocations: 383.6 kB / 367.1 MB, free: 4.324 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.21e-05/0.1097, allocations: 45.69 kB / 367.2 MB, free: 4.281 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.64e-05/0.1098, allocations: 48.38 kB / 367.2 MB, free: 4.234 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007929/0.1106, allocations: 0.4918 MB / 367.7 MB, free: 3.723 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.284e-05/0.1106, allocations: 0 / 367.7 MB, free: 3.723 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.29e-05/0.1107, allocations: 20 kB / 367.7 MB, free: 3.703 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.377e-05/0.1107, allocations: 16 kB / 367.7 MB, free: 3.688 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006416/0.1114, allocations: 348.6 kB / 368.1 MB, free: 3.348 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00261/0.114, allocations: 1.732 MB / 369.8 MB, free: 1.512 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004401/0.1144, allocations: 261.1 kB / 370.1 MB, free: 1.238 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002222/0.1147, allocations: 145.7 kB / 370.2 MB, free: 1.09 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.989e-05/0.1147, allocations: 4 kB / 370.2 MB, free: 1.086 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.494e-05/0.1147, allocations: 42.81 kB / 370.3 MB, free: 1.035 MB / 302.1 MB Notification: Performance of pre-optimization done (n=31): time 1.733e-06/0.1148, allocations: 0 / 370.3 MB, free: 1.035 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.1567/0.2715, allocations: 0.9641 MB / 371.2 MB, free: 19.96 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.751e-05/0.2715, allocations: 82.64 kB / 371.3 MB, free: 19.87 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000494/0.272, allocations: 386.6 kB / 371.7 MB, free: 19.75 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.952e-05/0.2721, allocations: 30.39 kB / 371.7 MB, free: 19.72 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001491/0.2723, allocations: 294.2 kB / 372 MB, free: 19.63 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.516e-05/0.2723, allocations: 117.3 kB / 372.1 MB, free: 19.59 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001354/0.2725, allocations: 75.55 kB / 372.2 MB, free: 19.57 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.851e-05/0.2726, allocations: 352.2 kB / 372.5 MB, free: 19.26 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002182/0.2728, allocations: 102.1 kB / 372.6 MB, free: 19.26 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002423/0.273, allocations: 191.8 kB / 372.8 MB, free: 19.16 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004413/0.2735, allocations: 313.4 kB / 373.1 MB, free: 19.06 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.2735, allocations: 1.969 kB / 373.1 MB, free: 19.06 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0008166/0.2743, allocations: 439.7 kB / 373.6 MB, free: 18.98 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.999e-05/0.2744, allocations: 14.8 kB / 373.6 MB, free: 18.98 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.917e-06/0.2744, allocations: 2.812 kB / 373.6 MB, free: 18.98 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003385/0.2747, allocations: 81.88 kB / 373.7 MB, free: 18.96 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003339/0.2751, allocations: 75.73 kB / 373.7 MB, free: 18.96 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001883/0.2769, allocations: 3.137 MB / 376.9 MB, free: 15.9 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002983/0.2773, allocations: 17.5 kB / 376.9 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.776e-05/0.2773, allocations: 16.41 kB / 376.9 MB, free: 15.89 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.0001725/0.2775, allocations: 177.4 kB / 377.1 MB, free: 15.73 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.247e-05/0.2776, allocations: 41.73 kB / 377.1 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.195e-05/0.2776, allocations: 46.41 kB / 377.2 MB, free: 15.68 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.199e-06/0.2777, allocations: 7.984 kB / 377.2 MB, free: 15.68 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.875e-06/0.2777, allocations: 1.938 kB / 377.2 MB, free: 15.68 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.079e-06/0.2777, allocations: 2.453 kB / 377.2 MB, free: 15.68 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001284/0.279, allocations: 0.9442 MB / 378.1 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.886e-06/0.279, allocations: 0 / 378.1 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001828/0.2792, allocations: 46.86 kB / 378.2 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002596/0.2794, allocations: 85.73 kB / 378.2 MB, free: 15.05 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.072e-05/0.2795, allocations: 8.891 kB / 378.3 MB, free: 15.05 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001678/0.2812, allocations: 3.129 MB / 381.4 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.2812, allocations: 4.594 kB / 381.4 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008958/0.2821, allocations: 0.6121 MB / 382 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.024e-05/0.2822, allocations: 114.5 kB / 382.1 MB, free: 11.49 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.072e-05/0.2822, allocations: 11.33 kB / 382.1 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003457/0.2826, allocations: 26.89 kB / 382.1 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.177e-05/0.2827, allocations: 28.83 kB / 382.2 MB, free: 11.47 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.041e-05/0.2827, allocations: 11.34 kB / 382.2 MB, free: 11.46 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002886/0.283, allocations: 278.4 kB / 382.5 MB, free: 11.32 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.283, allocations: 0 / 382.5 MB, free: 11.32 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006103/0.2836, allocations: 122.3 kB / 382.6 MB, free: 11.31 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.001151/0.2848, allocations: 1.17 MB / 383.7 MB, free: 10.4 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009055/0.2857, allocations: 0.5201 MB / 384.3 MB, free: 10.08 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.2857, allocations: 0 / 384.3 MB, free: 10.08 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004999/0.2862, allocations: 389.4 kB / 384.6 MB, free: 9.805 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005487/0.2868, allocations: 62.48 kB / 384.7 MB, free: 9.777 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00554/0.2923, allocations: 4.305 MB / 389 MB, free: 7.035 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004143/0.2928, allocations: 0.8457 MB / 389.9 MB, free: 6.328 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000268/0.2931, allocations: 46.3 kB / 389.9 MB, free: 6.312 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002021/0.2933, allocations: 170.6 kB / 390.1 MB, free: 6.184 MB / 302.1 MB Notification: Performance of SimCode: time 1.112e-06/0.2933, allocations: 0 / 390.1 MB, free: 6.184 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03105/0.3244, allocations: 8.83 MB / 398.9 MB, free: 3.316 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.405/9.73, allocations: 21.81 kB / 398.9 MB, free: 3.297 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