Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.CoupledInductors.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.Spice3.Examples.CoupledInductors,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_CoupledInductors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CoupledInductors,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_CoupledInductors",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000686/0.000686, allocations: 92.22 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0007994/0.0007994, allocations: 203.2 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.237/1.237, allocations: 227.7 MB / 246.8 MB, free: 11.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001964/0.0001964, allocations: 4 kB / 307.8 MB, free: 0.7227 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0779/0.07812, allocations: 51.52 MB / 359.4 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CoupledInductors): time 0.002505/0.08065, allocations: 2.501 MB / 361.9 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001218/0.08189, allocations: 0.7518 MB / 362.6 MB, free: 9.93 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001502/0.08206, allocations: 8 kB / 362.6 MB, free: 9.922 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 8.656e-05/0.08215, allocations: 47.61 kB / 362.7 MB, free: 9.875 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002054/0.08236, allocations: 71.38 kB / 362.7 MB, free: 9.805 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003057/0.08268, allocations: 107.8 kB / 362.8 MB, free: 9.699 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003571/0.08304, allocations: 434.8 kB / 363.3 MB, free: 9.27 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002631/0.08332, allocations: 186 kB / 363.4 MB, free: 9.082 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002014/0.08352, allocations: 147.5 kB / 363.6 MB, free: 8.938 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001778/0.08371, allocations: 175.2 kB / 363.8 MB, free: 8.766 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.927e-05/0.08376, allocations: 24 kB / 363.8 MB, free: 8.742 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.315e-05/0.08384, allocations: 32 kB / 363.8 MB, free: 8.711 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.396e-05/0.0839, allocations: 75.69 kB / 363.9 MB, free: 8.637 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001523/0.08406, allocations: 212.7 kB / 364.1 MB, free: 8.422 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003736/0.08444, allocations: 478.4 kB / 364.6 MB, free: 7.953 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.08445, allocations: 3.984 kB / 364.6 MB, free: 7.949 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.08446, allocations: 0 / 364.6 MB, free: 7.949 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.032e-06/0.08447, allocations: 0 / 364.6 MB, free: 7.949 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: 103 * Number of variables: 103 Notification: Performance of Generate backend data structure: time 0.0008619/0.08533, allocations: 0.628 MB / 365.2 MB, free: 7.27 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.971e-05/0.08538, allocations: 12.03 kB / 365.2 MB, free: 7.258 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.511e-05/0.08547, allocations: 78.66 kB / 365.3 MB, free: 7.172 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000205/0.08568, allocations: 60.45 kB / 365.3 MB, free: 7.113 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002503/0.08594, allocations: 276.5 kB / 365.6 MB, free: 6.801 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.427e-05/0.08597, allocations: 29.38 kB / 365.6 MB, free: 6.773 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.998e-05/0.08604, allocations: 40.38 kB / 365.7 MB, free: 6.734 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006421/0.08669, allocations: 459.4 kB / 366.1 MB, free: 6.258 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.552e-05/0.08671, allocations: 3.906 kB / 366.1 MB, free: 6.254 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.511e-05/0.08675, allocations: 20 kB / 366.1 MB, free: 6.234 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.125e-05/0.08677, allocations: 12 kB / 366.2 MB, free: 6.223 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004738/0.08725, allocations: 283.9 kB / 366.4 MB, free: 5.941 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001644/0.0889, allocations: 1.314 MB / 367.8 MB, free: 4.539 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004036/0.08932, allocations: 245.8 kB / 368 MB, free: 4.293 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003406/0.08967, allocations: 197.9 kB / 368.2 MB, free: 4.098 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.999e-05/0.0897, allocations: 7.938 kB / 368.2 MB, free: 4.09 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.521e-05/0.08973, allocations: 38.56 kB / 368.2 MB, free: 4.043 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 1.473e-06/0.08974, allocations: 0 / 368.2 MB, free: 4.043 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.001284/0.09103, allocations: 0.5579 MB / 368.8 MB, free: 3.457 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001094/0.09115, allocations: 235.3 kB / 369 MB, free: 3.172 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001868/0.09134, allocations: 206.8 kB / 369.2 MB, free: 2.961 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.581e-05/0.09137, allocations: 33.7 kB / 369.3 MB, free: 2.922 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001315/0.09151, allocations: 200.2 kB / 369.4 MB, free: 2.723 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.981e-05/0.09159, allocations: 106.5 kB / 369.6 MB, free: 2.617 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.32e-05/0.09164, allocations: 29.7 kB / 369.6 MB, free: 2.582 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001273/0.09177, allocations: 338.8 kB / 369.9 MB, free: 2.242 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001422/0.09192, allocations: 75.97 kB / 370 MB, free: 2.168 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002023/0.09213, allocations: 160.2 kB / 370.1 MB, free: 1.98 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003133/0.09245, allocations: 207.2 kB / 370.3 MB, free: 1.77 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.09246, allocations: 0 / 370.3 MB, free: 1.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0004293/0.0929, allocations: 285.2 kB / 370.6 MB, free: 1.484 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.171e-05/0.09293, allocations: 7.984 kB / 370.6 MB, free: 1.477 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/0.09294, allocations: 0 / 370.6 MB, free: 1.477 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.048e-05/0.09297, allocations: 4 kB / 370.6 MB, free: 1.473 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000298/0.09327, allocations: 71.91 kB / 370.7 MB, free: 1.402 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.04e-05/0.09329, allocations: 11.92 kB / 370.7 MB, free: 1.391 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001552/0.09345, allocations: 35.69 kB / 370.8 MB, free: 1.355 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.743e-05/0.09348, allocations: 8 kB / 370.8 MB, free: 1.348 MB / 302.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001407/0.09363, allocations: 161.7 kB / 370.9 MB, free: 1.18 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.813e-05/0.09368, allocations: 27.66 kB / 370.9 MB, free: 1.152 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.22e-05/0.09376, allocations: 34.64 kB / 371 MB, free: 1.117 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.09377, allocations: 4 kB / 371 MB, free: 1.113 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.567e-06/0.09378, allocations: 0 / 371 MB, free: 1.113 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.09379, allocations: 0 / 371 MB, free: 1.113 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000961/0.09475, allocations: 0.773 MB / 371.8 MB, free: 288 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.09477, allocations: 7.938 kB / 371.8 MB, free: 280 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002263/0.095, allocations: 47.97 kB / 371.8 MB, free: 232 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002914/0.0953, allocations: 92.78 kB / 371.9 MB, free: 136 kB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.957e-05/0.09533, allocations: 8 kB / 371.9 MB, free: 128 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1498/0.2451, allocations: 1.83 MB / 373.7 MB, free: 17.89 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.2451, allocations: 0 / 373.7 MB, free: 17.89 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006809/0.2458, allocations: 0.5087 MB / 374.2 MB, free: 17.73 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.205e-05/0.2459, allocations: 105.4 kB / 374.4 MB, free: 17.64 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.998e-05/0.2459, allocations: 10.69 kB / 374.4 MB, free: 17.64 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001505/0.2461, allocations: 10.39 kB / 374.4 MB, free: 17.64 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.486e-05/0.2461, allocations: 29.2 kB / 374.4 MB, free: 17.63 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.364e-05/0.2461, allocations: 8.875 kB / 374.4 MB, free: 17.63 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001009/0.2462, allocations: 152.7 kB / 374.6 MB, free: 17.56 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2462, allocations: 0 / 374.6 MB, free: 17.56 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003591/0.2466, allocations: 105.2 kB / 374.7 MB, free: 17.55 MB / 302.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008329/0.2475, allocations: 1.052 MB / 375.7 MB, free: 16.86 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003937/0.2479, allocations: 217.5 kB / 375.9 MB, free: 16.86 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.696e-06/0.2479, allocations: 1.594 kB / 375.9 MB, free: 16.86 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003536/0.2482, allocations: 271.6 kB / 376.2 MB, free: 16.73 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003608/0.2486, allocations: 33.61 kB / 376.2 MB, free: 16.73 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002662/0.2513, allocations: 3.149 MB / 379.4 MB, free: 14.77 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001794/0.2515, allocations: 0.7891 MB / 380.2 MB, free: 14.06 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.665e-05/0.2516, allocations: 25.8 kB / 380.2 MB, free: 14.05 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001062/0.2517, allocations: 104.3 kB / 380.3 MB, free: 13.98 MB / 302.1 MB Notification: Performance of SimCode: time 2.11e-07/0.2517, allocations: 0 / 380.3 MB, free: 13.98 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01531/0.267, allocations: 5.462 MB / 385.8 MB, free: 13.45 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001392/0.2672, allocations: 223.8 kB / 386 MB, free: 13.2 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.709/1.976, allocations: 1.031 kB / 386 MB, free: 13.2 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.CoupledInductors.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.CoupledInductors_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_CoupledInductors_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Spice3_Examples_CoupledInductors.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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