Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CoupledInductors.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) 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(Modelica.Electrical.Spice3.Examples.CoupledInductors,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_CoupledInductors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CoupledInductors,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_CoupledInductors",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.0008673/0.0008673, allocations: 173.7 kB / 16.72 MB, free: 5.086 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.197/1.197, allocations: 205.4 MB / 222.9 MB, free: 9.027 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.0007144/0.0007143, allocations: 101.4 kB / 271.2 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002901/0.0002901, allocations: 12 kB / 327.6 MB, free: 15.8 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1872/0.1875, allocations: 47.58 MB / 375.2 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CoupledInductors): time 0.001916/0.1894, allocations: 2.314 MB / 377.5 MB, free: 43.58 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008255/0.1903, allocations: 0.7291 MB / 378.2 MB, free: 42.98 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001036/0.1904, allocations: 6.031 kB / 378.2 MB, free: 42.98 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 6.497e-05/0.1905, allocations: 42.08 kB / 378.3 MB, free: 42.95 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001356/0.1906, allocations: 74.12 kB / 378.4 MB, free: 42.88 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002577/0.1909, allocations: 93.25 kB / 378.4 MB, free: 42.8 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003044/0.1912, allocations: 409.9 kB / 378.8 MB, free: 42.56 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002424/0.1914, allocations: 183.9 kB / 379 MB, free: 42.46 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000144/0.1916, allocations: 137.1 kB / 379.2 MB, free: 42.39 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001476/0.1917, allocations: 163.9 kB / 379.3 MB, free: 42.27 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.416e-05/0.1918, allocations: 23.25 kB / 379.3 MB, free: 42.27 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.347e-05/0.1918, allocations: 24.34 kB / 379.4 MB, free: 42.27 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.403e-05/0.1919, allocations: 71.39 kB / 379.4 MB, free: 42.21 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001251/0.192, allocations: 205.9 kB / 379.6 MB, free: 42.07 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002225/0.1923, allocations: 369.6 kB / 380 MB, free: 41.79 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.1923, allocations: 1.031 kB / 380 MB, free: 41.79 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1923, allocations: 0 / 380 MB, free: 41.79 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.681e-06/0.1923, allocations: 0 / 380 MB, free: 41.79 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 103 * Number of variables: 103 Notification: Performance of Generate backend data structure: time 0.0007579/0.1931, allocations: 0.6164 MB / 380.6 MB, free: 41.25 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.627e-05/0.1931, allocations: 9.5 kB / 380.6 MB, free: 41.25 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.713e-05/0.1932, allocations: 88.61 kB / 380.7 MB, free: 41.16 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.374e-05/0.1932, allocations: 47.22 kB / 380.8 MB, free: 41.14 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002141/0.1935, allocations: 272.1 kB / 381 MB, free: 40.86 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.454e-05/0.1935, allocations: 34.75 kB / 381.1 MB, free: 40.84 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.246e-05/0.1936, allocations: 39.75 kB / 381.1 MB, free: 40.83 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005888/0.1942, allocations: 451.8 kB / 381.5 MB, free: 40.53 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.547e-05/0.1942, allocations: 0 / 381.5 MB, free: 40.53 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.128e-05/0.1942, allocations: 16.19 kB / 381.5 MB, free: 40.52 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.879e-06/0.1942, allocations: 10.06 kB / 381.6 MB, free: 40.52 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004489/0.1947, allocations: 291.4 kB / 381.8 MB, free: 40.38 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001446/0.1961, allocations: 1.317 MB / 383.2 MB, free: 39.3 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003627/0.1965, allocations: 244.8 kB / 383.4 MB, free: 39.17 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003048/0.1968, allocations: 194.2 kB / 383.6 MB, free: 39.09 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.064e-05/0.1969, allocations: 7.891 kB / 383.6 MB, free: 39.08 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.804e-05/0.1969, allocations: 40.25 kB / 383.6 MB, free: 39.04 MB / 298.7 MB Notification: Performance of pre-optimization done (n=29): time 1.413e-06/0.1969, allocations: 1.281 kB / 383.6 MB, free: 39.04 MB / 298.7 MB Notification: Performance of matching and sorting (n=29): time 0.001216/0.1981, allocations: 0.553 MB / 384.2 MB, free: 38.69 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.263e-05/0.1982, allocations: 238.9 kB / 384.4 MB, free: 38.41 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001512/0.1983, allocations: 203.5 kB / 384.6 MB, free: 38.25 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.879e-05/0.1984, allocations: 36.55 kB / 384.7 MB, free: 38.21 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.38e-05/0.1984, allocations: 199.3 kB / 384.9 MB, free: 38.04 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.416e-05/0.1985, allocations: 101.9 kB / 385 MB, free: 37.95 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.232e-05/0.1985, allocations: 6.094 kB / 385 MB, free: 37.94 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.525e-05/0.1986, allocations: 336.1 kB / 385.3 MB, free: 37.61 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001351/0.1987, allocations: 72.19 kB / 385.4 MB, free: 37.58 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000167/0.1989, allocations: 168.7 kB / 385.5 MB, free: 37.44 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007801/0.1997, allocations: 376.6 kB / 385.9 MB, free: 37.25 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.1997, allocations: 0 / 385.9 MB, free: 37.25 MB / 298.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0003958/0.2001, allocations: 283.8 kB / 386.2 MB, free: 37.1 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.428e-05/0.2001, allocations: 7.094 kB / 386.2 MB, free: 37.1 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.2001, allocations: 1.156 kB / 386.2 MB, free: 37.1 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.499e-05/0.2001, allocations: 1.812 kB / 386.2 MB, free: 37.1 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003043/0.2004, allocations: 82.17 kB / 386.3 MB, free: 37.08 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.464e-06/0.2005, allocations: 6.344 kB / 386.3 MB, free: 37.07 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001599/0.2006, allocations: 30.31 kB / 386.3 MB, free: 37.05 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.923e-05/0.2006, allocations: 14.98 kB / 386.3 MB, free: 37.05 MB / 298.7 MB Warning: Assuming fixed start value for the following 2 variables: L2.iinternal:VARIABLE(unit = "A" fixed = true ) type: Real L3.iinternal:VARIABLE(unit = "A" fixed = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (38): * Single equations (assignments): 38 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001669/0.2008, allocations: 149.8 kB / 386.5 MB, free: 36.91 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.52e-05/0.2009, allocations: 28.12 kB / 386.5 MB, free: 36.89 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.815e-05/0.2009, allocations: 30.8 kB / 386.5 MB, free: 36.87 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.2009, allocations: 7.188 kB / 386.5 MB, free: 36.86 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.195e-06/0.201, allocations: 2.031 kB / 386.5 MB, free: 36.86 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.201, allocations: 3.938 kB / 386.5 MB, free: 36.86 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007899/0.2018, allocations: 0.7728 MB / 387.3 MB, free: 36.11 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.043e-06/0.2018, allocations: 0 / 387.3 MB, free: 36.11 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002238/0.202, allocations: 55.94 kB / 387.4 MB, free: 36.06 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002337/0.2022, allocations: 84.8 kB / 387.4 MB, free: 35.97 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.655e-05/0.2023, allocations: 8 kB / 387.4 MB, free: 35.96 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001239/0.2035, allocations: 1.831 MB / 389.3 MB, free: 34 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.2035, allocations: 7.969 kB / 389.3 MB, free: 33.99 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005699/0.2041, allocations: 0.5131 MB / 389.8 MB, free: 33.45 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.241e-05/0.2041, allocations: 104.8 kB / 389.9 MB, free: 33.33 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.719e-05/0.2042, allocations: 4.188 kB / 389.9 MB, free: 33.33 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001552/0.2043, allocations: 19.98 kB / 389.9 MB, free: 33.31 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.546e-05/0.2044, allocations: 23.97 kB / 389.9 MB, free: 33.29 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.211e-05/0.2044, allocations: 8 kB / 390 MB, free: 33.28 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.923e-05/0.2045, allocations: 152.4 kB / 390.1 MB, free: 33.13 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2045, allocations: 0 / 390.1 MB, free: 33.13 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003111/0.2048, allocations: 111.5 kB / 390.2 MB, free: 33.02 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 5 (L1.iinternal,L2.iinternal,C1.vinternal,L3.iinternal,C2.vinternal) * 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 (18): * Single equations (assignments): 17 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007484/0.2056, allocations: 1.051 MB / 391.3 MB, free: 31.94 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000308/0.2059, allocations: 211.8 kB / 391.5 MB, free: 31.73 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.2059, allocations: 128 / 391.5 MB, free: 31.73 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003157/0.2062, allocations: 274.5 kB / 391.7 MB, free: 31.45 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002738/0.2065, allocations: 31.92 kB / 391.8 MB, free: 31.42 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001855/0.2084, allocations: 1.923 MB / 393.7 MB, free: 29.42 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001676/0.2086, allocations: 0.7831 MB / 394.5 MB, free: 28.61 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001191/0.2087, allocations: 107.4 kB / 394.6 MB, free: 28.51 MB / 298.7 MB Notification: Performance of SimCode: time 3.01e-07/0.2087, allocations: 4 kB / 394.6 MB, free: 28.51 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.899/3.108, allocations: 4.97 MB / 399.6 MB, free: 23.53 MB / 298.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CoupledInductors.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CoupledInductors_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_CoupledInductors_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_CoupledInductors.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CoupledInductors_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/CoupledInductors/CoupledInductors.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CoupledInductors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,L1.iinternal,L2.iinternal,L3.iinternal Variables in the result:C1.C,C1.IC,C1.UIC,C1.i,C1.n.i,C1.n.v,C1.p.i,C1.p.v,C1.v,C1.vinternal,C2.C,C2.IC,C2.UIC,C2.i,C2.n.i,C2.n.v,C2.p.i,C2.p.v,C2.v,C2.vinternal,L1.IC,L1.ICP.L,L1.ICP.di,L1.ICP.v,L1.L,L1.UIC,L1.i,L1.iinternal,L1.n.i,L1.n.v,L1.p.i,L1.p.v,L1.v,L2.IC,L2.ICP.L,L2.ICP.di,L2.ICP.v,L2.L,L2.UIC,L2.i,L2.iinternal,L2.n.i,L2.n.v,L2.p.i,L2.p.v,L2.v,L3.IC,L3.ICP.L,L3.ICP.di,L3.ICP.v,L3.L,L3.UIC,L3.i,L3.iinternal,L3.n.i,L3.n.v,L3.p.i,L3.p.v,L3.v,R1.R,R1.i,R1.n.i,R1.n.v,R1.p.i,R1.p.v,R1.v,R2.R,R2.i,R2.n.i,R2.n.v,R2.p.i,R2.p.v,R2.v,R3.R,R3.i,R3.n.i,R3.n.v,R3.p.i,R3.p.v,R3.v,R4.R,R4.i,R4.n.i,R4.n.v,R4.p.i,R4.p.v,R4.v,R5.R,R5.i,R5.n.i,R5.n.v,R5.p.i,R5.p.v,R5.v,der(C1.vinternal),der(C2.vinternal),der(L1.iinternal),der(L2.iinternal),der(L3.iinternal),ground.p.i,ground.p.v,k1.M,k1.inductiveCouplePin1.L,k1.inductiveCouplePin1.di,k1.inductiveCouplePin1.v,k1.inductiveCouplePin2.L,k1.inductiveCouplePin2.di,k1.inductiveCouplePin2.v,k1.k,k2.M,k2.inductiveCouplePin1.L,k2.inductiveCouplePin1.di,k2.inductiveCouplePin1.v,k2.inductiveCouplePin2.L,k2.inductiveCouplePin2.di,k2.inductiveCouplePin2.v,k2.k,k3.M,k3.inductiveCouplePin1.L,k3.inductiveCouplePin1.di,k3.inductiveCouplePin1.v,k3.inductiveCouplePin2.L,k3.inductiveCouplePin2.di,k3.inductiveCouplePin2.v,k3.k,sineVoltage.FREQ,sineVoltage.TD,sineVoltage.THETA,sineVoltage.VA,sineVoltage.VO,sineVoltage.i,sineVoltage.n.i,sineVoltage.n.v,sineVoltage.p.i,sineVoltage.p.v,sineVoltage.v,time