Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.CoupledInductors.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CoupledInductors,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Spice3_Examples_CoupledInductors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CoupledInductors,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001688/0.001689, allocations: 191.6 kB / 17.37 MB, free: 4.406 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.265/1.265, allocations: 226.5 MB / 244.7 MB, free: 6.477 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007804/0.0007804, allocations: 89.3 kB / 296.7 MB, free: 6.668 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002261/0.0002262, allocations: 8 kB / 356.8 MB, free: 10.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1837/0.1839, allocations: 51.28 MB / 408.1 MB, free: 27.66 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CoupledInductors): time 0.001776/0.1857, allocations: 2.374 MB / 410.5 MB, free: 25.28 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007653/0.1865, allocations: 0.7291 MB / 411.2 MB, free: 24.55 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.854e-05/0.1866, allocations: 4.5 kB / 411.2 MB, free: 24.55 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 6.047e-05/0.1867, allocations: 48.42 kB / 411.3 MB, free: 24.5 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001557/0.1868, allocations: 85.2 kB / 411.4 MB, free: 24.42 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002367/0.1871, allocations: 88.78 kB / 411.4 MB, free: 24.33 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002548/0.1873, allocations: 414.8 kB / 411.9 MB, free: 23.92 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002223/0.1876, allocations: 186.8 kB / 412 MB, free: 23.74 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000151/0.1877, allocations: 151.5 kB / 412.2 MB, free: 23.59 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001342/0.1879, allocations: 167.2 kB / 412.3 MB, free: 23.43 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.594e-05/0.1879, allocations: 24 kB / 412.4 MB, free: 23.41 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.225e-05/0.188, allocations: 32 kB / 412.4 MB, free: 23.38 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.192e-05/0.188, allocations: 71.69 kB / 412.5 MB, free: 23.3 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001171/0.1882, allocations: 204.9 kB / 412.7 MB, free: 23.1 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002348/0.1884, allocations: 384.2 kB / 413 MB, free: 22.72 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.1884, allocations: 0 / 413 MB, free: 22.72 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.332e-06/0.1884, allocations: 0 / 413 MB, free: 22.72 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.28e-06/0.1884, allocations: 0 / 413 MB, free: 22.72 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.0007044/0.1892, allocations: 0.6202 MB / 413.7 MB, free: 22.05 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.335e-05/0.1892, allocations: 8.031 kB / 413.7 MB, free: 22.04 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.226e-05/0.1893, allocations: 82.72 kB / 413.8 MB, free: 21.95 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001872/0.1895, allocations: 56.45 kB / 413.8 MB, free: 21.9 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001876/0.1896, allocations: 280.3 kB / 414.1 MB, free: 21.58 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.945e-05/0.1897, allocations: 37.38 kB / 414.1 MB, free: 21.55 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.815e-05/0.1897, allocations: 44.38 kB / 414.2 MB, free: 21.5 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005327/0.1903, allocations: 459.4 kB / 414.6 MB, free: 21.03 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.565e-05/0.1903, allocations: 0 / 414.6 MB, free: 21.03 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.957e-05/0.1903, allocations: 20 kB / 414.6 MB, free: 21.01 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.885e-06/0.1903, allocations: 12 kB / 414.6 MB, free: 21 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004031/0.1908, allocations: 283.9 kB / 414.9 MB, free: 20.72 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001333/0.1921, allocations: 1.318 MB / 416.2 MB, free: 19.31 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003383/0.1924, allocations: 249.8 kB / 416.5 MB, free: 19.06 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002788/0.1927, allocations: 196.7 kB / 416.7 MB, free: 18.87 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.356e-05/0.1928, allocations: 4 kB / 416.7 MB, free: 18.86 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.35e-05/0.1928, allocations: 34.56 kB / 416.7 MB, free: 18.82 MB / 298.7 MB Notification: Performance of pre-optimization done (n=29): time 1.262e-06/0.1928, allocations: 3.938 kB / 416.7 MB, free: 18.82 MB / 298.7 MB Notification: Performance of matching and sorting (n=29): time 0.001136/0.1939, allocations: 0.5589 MB / 417.3 MB, free: 18.23 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.521e-05/0.194, allocations: 235.3 kB / 417.5 MB, free: 17.95 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001239/0.1941, allocations: 207 kB / 417.7 MB, free: 17.73 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.698e-05/0.1941, allocations: 29.7 kB / 417.7 MB, free: 17.7 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.552e-05/0.1942, allocations: 200.2 kB / 417.9 MB, free: 17.5 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.043e-05/0.1943, allocations: 106.5 kB / 418 MB, free: 17.39 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.169e-05/0.1943, allocations: 4 kB / 418 MB, free: 17.39 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.394e-05/0.1943, allocations: 334.8 kB / 418.4 MB, free: 17.05 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001244/0.1945, allocations: 79.72 kB / 418.4 MB, free: 16.98 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001486/0.1946, allocations: 157.2 kB / 418.6 MB, free: 16.79 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002636/0.1949, allocations: 204.2 kB / 418.8 MB, free: 16.59 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.1949, allocations: 0 / 418.8 MB, free: 16.59 MB / 298.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0003457/0.1952, allocations: 277 kB / 419.1 MB, free: 16.31 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.244e-05/0.1953, allocations: 7.984 kB / 419.1 MB, free: 16.3 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.489e-06/0.1953, allocations: 64 / 419.1 MB, free: 16.3 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.092e-05/0.1953, allocations: 8 kB / 419.1 MB, free: 16.29 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002822/0.1956, allocations: 83.89 kB / 419.2 MB, free: 16.21 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.941e-06/0.1956, allocations: 0 / 419.2 MB, free: 16.21 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001394/0.1957, allocations: 31.69 kB / 419.2 MB, free: 16.18 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.57e-05/0.1958, allocations: 12 kB / 419.2 MB, free: 16.17 MB / 298.7 MB 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 9.936e-05/0.1959, allocations: 149.8 kB / 419.4 MB, free: 16.01 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.959e-05/0.1959, allocations: 23.75 kB / 419.4 MB, free: 15.99 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.518e-05/0.196, allocations: 34.64 kB / 419.4 MB, free: 15.95 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.196, allocations: 4 kB / 419.4 MB, free: 15.95 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.196, allocations: 4 kB / 419.4 MB, free: 15.95 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.196, allocations: 7.922 kB / 419.4 MB, free: 15.94 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007705/0.1968, allocations: 0.7671 MB / 420.2 MB, free: 15.11 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.1968, allocations: 4 kB / 420.2 MB, free: 15.11 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002216/0.197, allocations: 52 kB / 420.3 MB, free: 15.05 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002506/0.1973, allocations: 84.8 kB / 420.3 MB, free: 14.97 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.605e-05/0.1973, allocations: 8 kB / 420.3 MB, free: 14.96 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001242/0.1985, allocations: 1.821 MB / 422.2 MB, free: 13.01 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.1986, allocations: 4 kB / 422.2 MB, free: 13 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005608/0.1991, allocations: 0.5217 MB / 422.7 MB, free: 12.46 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.1e-05/0.1992, allocations: 96.77 kB / 422.8 MB, free: 12.34 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.833e-05/0.1992, allocations: 8.062 kB / 422.8 MB, free: 12.34 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001452/0.1994, allocations: 15.98 kB / 422.8 MB, free: 12.32 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.41e-05/0.1994, allocations: 23.97 kB / 422.8 MB, free: 12.3 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.312e-05/0.1994, allocations: 15.98 kB / 422.8 MB, free: 12.28 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.856e-05/0.1995, allocations: 152.3 kB / 423 MB, free: 12.13 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1995, allocations: 3.938 kB / 423 MB, free: 12.13 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002934/0.1998, allocations: 115.5 kB / 423.1 MB, free: 12.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.0007295/0.2006, allocations: 1.041 MB / 424.2 MB, free: 10.95 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003011/0.2009, allocations: 215.8 kB / 424.4 MB, free: 10.73 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.2009, allocations: 4 kB / 424.4 MB, free: 10.73 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003175/0.2012, allocations: 274.5 kB / 424.6 MB, free: 10.45 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003339/0.2015, allocations: 35.86 kB / 424.7 MB, free: 10.41 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001804/0.2034, allocations: 1.919 MB / 426.6 MB, free: 8.43 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001487/0.2035, allocations: 0.7872 MB / 427.4 MB, free: 7.617 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001117/0.2036, allocations: 107.4 kB / 427.5 MB, free: 7.512 MB / 298.7 MB Notification: Performance of SimCode: time 2.21e-07/0.2036, allocations: 0 / 427.5 MB, free: 7.512 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.984/3.188, allocations: 5.024 MB / 432.5 MB, free: 2.48 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.CoupledInductors.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.CoupledInductors_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Electrical_Spice3_Examples_CoupledInductors_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Electrical_Spice3_Examples_CoupledInductors.fmu > Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.CoupledInductors_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/CoupledInductors/CoupledInductors.csv","../files/Modelica_trunk_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