Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.SingularTransfomer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Electrical.SingularTransfomer,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Electrical_SingularTransfomer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.SingularTransfomer,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Electrical_SingularTransfomer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008473/0.0008472, allocations: 175.2 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.091/1.091, allocations: 205.4 MB / 222.9 MB, free: 9.035 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007003/0.0007004, allocations: 100 kB / 271.2 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2676/0.2676, allocations: 43.57 MB / 363.1 MB, free: 51.91 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003221/0.0003221, allocations: 15.98 kB / 432.1 MB, free: 5.508 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08974/0.09008, allocations: 58.84 MB / 490.9 MB, free: 10.57 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.SingularTransfomer): time 0.001992/0.0921, allocations: 2.131 MB / 493 MB, free: 8.43 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.000725/0.09284, allocations: 0.6204 MB / 493.7 MB, free: 7.801 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.013e-05/0.09294, allocations: 4 kB / 493.7 MB, free: 7.797 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 9.307e-05/0.09304, allocations: 31.77 kB / 493.7 MB, free: 7.766 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 9.82e-05/0.09315, allocations: 63.47 kB / 493.8 MB, free: 7.703 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001679/0.09332, allocations: 51.94 kB / 493.8 MB, free: 7.652 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002305/0.09356, allocations: 262.8 kB / 494.1 MB, free: 7.395 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001377/0.09371, allocations: 77.02 kB / 494.1 MB, free: 7.32 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001172/0.09383, allocations: 91.64 kB / 494.2 MB, free: 7.23 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001171/0.09396, allocations: 107.5 kB / 494.3 MB, free: 7.125 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.865e-05/0.09399, allocations: 16 kB / 494.4 MB, free: 7.109 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.211e-05/0.09403, allocations: 15.94 kB / 494.4 MB, free: 7.094 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 3.518e-05/0.09407, allocations: 35.84 kB / 494.4 MB, free: 7.059 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 9.591e-05/0.09418, allocations: 129.2 kB / 494.5 MB, free: 6.926 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001608/0.09434, allocations: 207.7 kB / 494.7 MB, free: 6.723 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.09435, allocations: 4 kB / 494.7 MB, free: 6.719 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.09436, allocations: 0 / 494.7 MB, free: 6.719 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.947e-06/0.09437, allocations: 0 / 494.7 MB, free: 6.719 MB / 378.7 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.0005718/0.09495, allocations: 0.499 MB / 495.2 MB, free: 6.172 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.455e-05/0.09499, allocations: 12.03 kB / 495.2 MB, free: 6.16 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.101e-05/0.09504, allocations: 54.67 kB / 495.3 MB, free: 6.098 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.469e-05/0.09509, allocations: 28.66 kB / 495.3 MB, free: 6.07 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002174/0.09532, allocations: 243.8 kB / 495.6 MB, free: 5.793 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.238e-05/0.09534, allocations: 20.75 kB / 495.6 MB, free: 5.773 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.21e-05/0.09538, allocations: 16.38 kB / 495.6 MB, free: 5.758 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003151/0.0957, allocations: 195.4 kB / 495.8 MB, free: 5.562 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-06/0.09571, allocations: 0 / 495.8 MB, free: 5.562 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.147e-05/0.09574, allocations: 12 kB / 495.8 MB, free: 5.551 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.221e-06/0.09575, allocations: 8 kB / 495.8 MB, free: 5.543 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002611/0.09602, allocations: 141.6 kB / 495.9 MB, free: 5.402 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00107/0.0971, allocations: 0.8142 MB / 496.8 MB, free: 4.512 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001541/0.09726, allocations: 102.5 kB / 496.9 MB, free: 4.402 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.743e-05/0.09736, allocations: 52.97 kB / 496.9 MB, free: 4.348 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.505e-05/0.09738, allocations: 0 / 496.9 MB, free: 4.348 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.081e-05/0.09741, allocations: 38.56 kB / 497 MB, free: 4.301 MB / 378.7 MB Notification: Performance of pre-optimization done (n=10): time 9.31e-07/0.09741, allocations: 0 / 497 MB, free: 4.301 MB / 378.7 MB Notification: Performance of matching and sorting (n=16): time 0.001517/0.09894, allocations: 0.7516 MB / 497.7 MB, free: 3.496 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.783e-05/0.09898, allocations: 56.06 kB / 497.8 MB, free: 3.43 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001611/0.09914, allocations: 215.7 kB / 498 MB, free: 3.207 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.625e-05/0.09917, allocations: 25.7 kB / 498 MB, free: 3.176 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.648e-05/0.09925, allocations: 171.8 kB / 498.2 MB, free: 3.004 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.307e-05/0.09929, allocations: 47.27 kB / 498.2 MB, free: 2.957 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.068e-05/0.0993, allocations: 8 kB / 498.2 MB, free: 2.949 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.353e-05/0.09939, allocations: 334.8 kB / 498.5 MB, free: 2.613 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001258/0.09952, allocations: 59.91 kB / 498.6 MB, free: 2.555 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001456/0.09968, allocations: 113.1 kB / 498.7 MB, free: 2.426 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002743/0.09996, allocations: 184.9 kB / 498.9 MB, free: 2.227 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-06/0.09997, allocations: 0 / 498.9 MB, free: 2.227 MB / 378.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004727/0.1004, allocations: 294.2 kB / 499.2 MB, free: 1.93 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.204e-05/0.1005, allocations: 8 kB / 499.2 MB, free: 1.922 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-06/0.1005, allocations: 0 / 499.2 MB, free: 1.922 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002035/0.1007, allocations: 73.83 kB / 499.3 MB, free: 1.844 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001464/0.1008, allocations: 31.98 kB / 499.3 MB, free: 1.812 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1498/0.2506, allocations: 2.798 MB / 0.4903 GB, free: 41.67 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001756/0.2508, allocations: 13.52 kB / 0.4903 GB, free: 41.67 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.806e-05/0.2509, allocations: 8.906 kB / 0.4903 GB, free: 41.67 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001246/0.251, allocations: 136.9 kB / 0.4905 GB, free: 41.55 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.209e-05/0.251, allocations: 21.88 kB / 0.4905 GB, free: 41.55 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.593e-05/0.2511, allocations: 25.64 kB / 0.4905 GB, free: 41.55 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.2511, allocations: 1.922 kB / 0.4905 GB, free: 41.55 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.2511, allocations: 2.312 kB / 0.4905 GB, free: 41.55 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.976e-06/0.2511, allocations: 1.922 kB / 0.4905 GB, free: 41.55 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002413/0.2513, allocations: 286.3 kB / 0.4908 GB, free: 41.37 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.295e-06/0.2514, allocations: 2 kB / 0.4908 GB, free: 41.37 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.158e-05/0.2515, allocations: 17.72 kB / 0.4908 GB, free: 41.37 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001833/0.2516, allocations: 80.86 kB / 0.4909 GB, free: 41.35 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.347e-05/0.2517, allocations: 3.625 kB / 0.4909 GB, free: 41.35 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001415/0.2531, allocations: 2.801 MB / 0.4936 GB, free: 38.86 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.2531, allocations: 1.031 kB / 0.4936 GB, free: 38.86 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005881/0.2537, allocations: 400.8 kB / 0.494 GB, free: 38.71 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.381e-05/0.2537, allocations: 94.23 kB / 0.4941 GB, free: 38.61 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.323e-05/0.2538, allocations: 3.156 kB / 0.4941 GB, free: 38.61 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001688/0.2539, allocations: 27.44 kB / 0.4941 GB, free: 38.61 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.571e-05/0.254, allocations: 15.17 kB / 0.4941 GB, free: 38.61 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.397e-05/0.254, allocations: 6.25 kB / 0.4942 GB, free: 38.61 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001073/0.2541, allocations: 154.3 kB / 0.4943 GB, free: 38.53 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2541, allocations: 0 / 0.4943 GB, free: 38.53 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003105/0.2545, allocations: 60.78 kB / 0.4944 GB, free: 38.53 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007021/0.2552, allocations: 0.9408 MB / 0.4953 GB, free: 37.84 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005317/0.2557, allocations: 410.2 kB / 0.4957 GB, free: 37.62 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.2557, allocations: 1 kB / 0.4957 GB, free: 37.62 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003407/0.2561, allocations: 339 kB / 0.496 GB, free: 37.4 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003114/0.2564, allocations: 34.47 kB / 0.496 GB, free: 37.39 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001837/0.2582, allocations: 1.428 MB / 0.4974 GB, free: 36.72 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001547/0.2584, allocations: 0.7463 MB / 0.4982 GB, free: 36.02 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.512e-05/0.2585, allocations: 65.39 kB / 0.4982 GB, free: 36.01 MB / 378.7 MB Notification: Performance of SimCode: time 3.21e-07/0.2585, allocations: 0 / 0.4982 GB, free: 36.01 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.154/4.412, allocations: 5.187 MB / 0.5033 GB, free: 35.69 MB / 378.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.SingularTransfomer.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.SingularTransfomer.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.SingularTransfomer.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.SingularTransfomer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.SingularTransfomer_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Electrical_SingularTransfomer_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Electrical_SingularTransfomer.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.SingularTransfomer.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.SingularTransfomer_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Electrical/SingularTransfomer/SingularTransfomer.csv","../files/ModelicaTest_3.2.3_cpp_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.freqHz,sineVoltage1.i,sineVoltage1.n.i,sineVoltage1.n.v,sineVoltage1.offset,sineVoltage1.p.i,sineVoltage1.p.v,sineVoltage1.phase,sineVoltage1.signalSource.amplitude,sineVoltage1.signalSource.freqHz,sineVoltage1.signalSource.offset,sineVoltage1.signalSource.phase,sineVoltage1.signalSource.startTime,sineVoltage1.signalSource.y,sineVoltage1.startTime,sineVoltage1.v,time