Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Electrical.SingularTransfomer.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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: "" <> buildModelFMU(ModelicaTest.Electrical.SingularTransfomer,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Electrical_SingularTransfomer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.SingularTransfomer,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Electrical_SingularTransfomer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001247/0.001248, allocations: 104.5 kB / 17.63 MB, free: 5.344 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.001165/0.001165, allocations: 192 kB / 18.56 MB, free: 4.434 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.346/1.346, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1973/0.1973, allocations: 44.18 MB / 336.6 MB, free: 2.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001295/0.001296, allocations: 64.86 kB / 408.5 MB, free: 27.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09613/0.09744, allocations: 60.82 MB / 469.3 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.SingularTransfomer): time 0.003561/0.101, allocations: 2.56 MB / 471.9 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008493/0.1019, allocations: 0.5999 MB / 472.5 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001095/0.102, allocations: 7.938 kB / 472.5 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001379/0.1022, allocations: 35.64 kB / 472.5 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001284/0.1023, allocations: 75.33 kB / 472.6 MB, free: 10.99 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002234/0.1026, allocations: 67.86 kB / 472.7 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002698/0.1028, allocations: 286.7 kB / 473 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001846/0.103, allocations: 88.58 kB / 473.1 MB, free: 10.55 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001587/0.1032, allocations: 115.6 kB / 473.2 MB, free: 10.44 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001478/0.1034, allocations: 115.5 kB / 473.3 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.97e-05/0.1034, allocations: 24 kB / 473.3 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.193e-05/0.1035, allocations: 24 kB / 473.3 MB, free: 10.28 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.755e-05/0.1035, allocations: 51.78 kB / 473.4 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001105/0.1036, allocations: 127.4 kB / 473.5 MB, free: 10.1 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002451/0.1039, allocations: 275.3 kB / 473.8 MB, free: 9.832 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.935e-06/0.1039, allocations: 4 kB / 473.8 MB, free: 9.828 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1039, allocations: 0 / 473.8 MB, free: 9.828 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.398e-06/0.1039, allocations: 0 / 473.8 MB, free: 9.828 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 51 * Number of variables: 51 Notification: Performance of Generate backend data structure: time 0.0007082/0.1046, allocations: 0.5341 MB / 474.3 MB, free: 9.246 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.724e-05/0.1047, allocations: 8.031 kB / 474.3 MB, free: 9.238 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.349e-05/0.1047, allocations: 54.73 kB / 474.4 MB, free: 9.176 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.054e-05/0.1048, allocations: 28.66 kB / 474.4 MB, free: 9.148 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002459/0.105, allocations: 243.9 kB / 474.6 MB, free: 8.871 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.852e-05/0.1051, allocations: 16.81 kB / 474.7 MB, free: 8.855 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.89e-05/0.1051, allocations: 20.38 kB / 474.7 MB, free: 8.836 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000333/0.1055, allocations: 195.3 kB / 474.9 MB, free: 8.641 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.257e-06/0.1055, allocations: 0 / 474.9 MB, free: 8.641 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.486e-05/0.1055, allocations: 12 kB / 474.9 MB, free: 8.629 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.975e-06/0.1055, allocations: 4 kB / 474.9 MB, free: 8.625 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002684/0.1058, allocations: 137.7 kB / 475 MB, free: 8.488 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001203/0.107, allocations: 0.8102 MB / 475.8 MB, free: 7.602 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002026/0.1072, allocations: 106.4 kB / 475.9 MB, free: 7.488 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.13e-05/0.1073, allocations: 48.84 kB / 476 MB, free: 7.438 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.564e-05/0.1073, allocations: 3.938 kB / 476 MB, free: 7.434 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.242e-05/0.1074, allocations: 34.56 kB / 476 MB, free: 7.391 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.293e-06/0.1074, allocations: 0 / 476 MB, free: 7.391 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.001671/0.1091, allocations: 0.7175 MB / 476.7 MB, free: 6.613 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.144e-05/0.1091, allocations: 55.41 kB / 476.8 MB, free: 6.547 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001894/0.1093, allocations: 215.6 kB / 477 MB, free: 6.328 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.883e-05/0.1093, allocations: 29.7 kB / 477 MB, free: 6.293 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.176e-05/0.1094, allocations: 163.8 kB / 477.2 MB, free: 6.129 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.049e-05/0.1095, allocations: 63.12 kB / 477.2 MB, free: 6.066 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.011e-05/0.1095, allocations: 45.7 kB / 477.3 MB, free: 6.016 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001015/0.1097, allocations: 338.8 kB / 477.6 MB, free: 5.676 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001329/0.1098, allocations: 55.97 kB / 477.7 MB, free: 5.621 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000149/0.11, allocations: 97.12 kB / 477.8 MB, free: 5.508 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002799/0.1102, allocations: 173 kB / 477.9 MB, free: 5.32 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.1103, allocations: 0 / 477.9 MB, free: 5.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0005052/0.1108, allocations: 293.1 kB / 478.2 MB, free: 5.023 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.455e-05/0.1108, allocations: 4 kB / 478.2 MB, free: 5.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.1108, allocations: 3.984 kB / 478.2 MB, free: 5.016 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002274/0.111, allocations: 73.75 kB / 478.3 MB, free: 4.938 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000174/0.1112, allocations: 35.91 kB / 478.3 MB, free: 4.902 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002127/0.1134, allocations: 3.001 MB / 481.3 MB, free: 1.617 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001551/0.1135, allocations: 16.02 kB / 481.4 MB, free: 1.602 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.785e-05/0.1136, allocations: 12 kB / 481.4 MB, free: 1.59 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (18): * Single equations (assignments): 16 * 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,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001303/0.1137, allocations: 137.8 kB / 481.5 MB, free: 1.445 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.646e-05/0.1137, allocations: 23.72 kB / 481.5 MB, free: 1.422 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.631e-05/0.1138, allocations: 25.86 kB / 481.6 MB, free: 1.402 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.1138, allocations: 0 / 481.6 MB, free: 1.402 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.1138, allocations: 4 kB / 481.6 MB, free: 1.398 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.504e-06/0.1138, allocations: 0 / 481.6 MB, free: 1.398 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002815/0.1141, allocations: 294.1 kB / 481.8 MB, free: 1.062 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.1141, allocations: 0 / 481.8 MB, free: 1.062 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001002/0.1142, allocations: 15.98 kB / 481.9 MB, free: 1.047 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001816/0.1144, allocations: 73.61 kB / 481.9 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.152e-05/0.1144, allocations: 0 / 481.9 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002016/0.1164, allocations: 3.013 MB / 484.9 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.1165, allocations: 0 / 484.9 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006015/0.1171, allocations: 396.8 kB / 485.3 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.337e-05/0.1171, allocations: 92.95 kB / 485.4 MB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.795e-05/0.1172, allocations: 4 kB / 485.4 MB, free: 13.15 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001843/0.1174, allocations: 20.05 kB / 485.4 MB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.263e-05/0.1174, allocations: 23.91 kB / 485.5 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.169e-05/0.1175, allocations: 4 kB / 485.5 MB, free: 13.11 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001258/0.1176, allocations: 149.5 kB / 485.6 MB, free: 12.96 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1176, allocations: 0 / 485.6 MB, free: 12.96 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003681/0.118, allocations: 60 kB / 485.7 MB, free: 12.9 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (basicTransformer.i1) * 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 (9): * Single equations (assignments): 7 * 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,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008456/0.1188, allocations: 0.9293 MB / 486.6 MB, free: 11.94 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006601/0.1195, allocations: 414 kB / 487 MB, free: 11.51 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.1195, allocations: 0 / 487 MB, free: 11.51 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004041/0.1199, allocations: 317.4 kB / 487.3 MB, free: 11.18 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003616/0.1203, allocations: 31.81 kB / 487.4 MB, free: 11.15 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002915/0.1232, allocations: 2.479 MB / 489.8 MB, free: 8.547 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000273/0.1235, allocations: 0.7518 MB / 490.6 MB, free: 7.77 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.295e-05/0.1236, allocations: 21.94 kB / 490.6 MB, free: 7.746 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.794e-05/0.1237, allocations: 67.41 kB / 490.7 MB, free: 7.68 MB / 366.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1237, allocations: 0 / 490.7 MB, free: 7.68 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03475/0.1585, allocations: 4.873 MB / 495.5 MB, free: 2.918 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.891/10.05, allocations: 7.953 kB / 495.6 MB, free: 2.914 MB / 366.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Electrical.SingularTransfomer.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Electrical.SingularTransfomer.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Electrical.SingularTransfomer.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.SingularTransfomer.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Electrical.SingularTransfomer_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Electrical_SingularTransfomer_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Electrical_SingularTransfomer.fmu > ModelicaTest_4.0.0_ModelicaTest.Electrical.SingularTransfomer.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Electrical.SingularTransfomer_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/SingularTransfomer/SingularTransfomer.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Electrical.SingularTransfomer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,basicTransformer.i1,basicTransformer.i2 Variables in the result:L,basicTransformer.L1,basicTransformer.L2,basicTransformer.M,basicTransformer.dv,basicTransformer.i1,basicTransformer.i2,basicTransformer.n1.i,basicTransformer.n1.v,basicTransformer.n2.i,basicTransformer.n2.v,basicTransformer.p1.i,basicTransformer.p1.v,basicTransformer.p2.i,basicTransformer.p2.v,basicTransformer.v1,basicTransformer.v2,der(basicTransformer.i1),der(basicTransformer.i2),der(basicTransformer.v2),der(load1.v),der(resistor11.v),der(resistor12.v),der(sineVoltage1.v),ground1.p.i,ground1.p.v,ground2.p.i,ground2.p.v,load1.LossPower,load1.R,load1.R_actual,load1.T,load1.T_heatPort,load1.T_ref,load1.alpha,load1.i,load1.n.i,load1.n.v,load1.p.i,load1.p.v,load1.useHeatPort,load1.v,resistor11.LossPower,resistor11.R,resistor11.R_actual,resistor11.T,resistor11.T_heatPort,resistor11.T_ref,resistor11.alpha,resistor11.i,resistor11.n.i,resistor11.n.v,resistor11.p.i,resistor11.p.v,resistor11.useHeatPort,resistor11.v,resistor12.LossPower,resistor12.R,resistor12.R_actual,resistor12.T,resistor12.T_heatPort,resistor12.T_ref,resistor12.alpha,resistor12.i,resistor12.n.i,resistor12.n.v,resistor12.p.i,resistor12.p.v,resistor12.useHeatPort,resistor12.v,sineVoltage1.V,sineVoltage1.f,sineVoltage1.i,sineVoltage1.n.i,sineVoltage1.n.v,sineVoltage1.offset,sineVoltage1.p.i,sineVoltage1.p.v,sineVoltage1.phase,sineVoltage1.signalSource.amplitude,sineVoltage1.signalSource.f,sineVoltage1.signalSource.offset,sineVoltage1.signalSource.phase,sineVoltage1.signalSource.startTime,sineVoltage1.signalSource.y,sineVoltage1.startTime,sineVoltage1.v,time