Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CoupledInductors.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) 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(Modelica.Electrical.Spice3.Examples.CoupledInductors,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_CoupledInductors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CoupledInductors,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_CoupledInductors",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.001167/0.001167, allocations: 111 kB / 17.06 MB, free: 5.965 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.001014/0.001014, allocations: 198.9 kB / 18.01 MB, free: 5.055 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.354/1.354, allocations: 222.9 MB / 241.7 MB, free: 15.1 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009987/0.0009988, allocations: 51.92 kB / 350.8 MB, free: 3.746 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2585/0.2595, allocations: 49.44 MB / 400.2 MB, free: 8.402 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CoupledInductors): time 0.003846/0.2634, allocations: 2.819 MB / 403.1 MB, free: 5.98 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001517/0.265, allocations: 0.7205 MB / 403.8 MB, free: 5.254 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003093/0.2653, allocations: 4 kB / 403.8 MB, free: 5.25 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002063/0.2655, allocations: 67.36 kB / 403.8 MB, free: 5.184 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004086/0.266, allocations: 103 kB / 403.9 MB, free: 5.082 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000505/0.2665, allocations: 115.8 kB / 404.1 MB, free: 4.969 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006157/0.2671, allocations: 446.8 kB / 404.5 MB, free: 4.531 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003757/0.2675, allocations: 220.9 kB / 404.7 MB, free: 4.309 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003139/0.2678, allocations: 183.4 kB / 404.9 MB, free: 4.129 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003285/0.2682, allocations: 207.1 kB / 405.1 MB, free: 3.926 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.068e-05/0.2683, allocations: 48 kB / 405.1 MB, free: 3.879 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.239e-05/0.2684, allocations: 44 kB / 405.2 MB, free: 3.836 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.396e-05/0.2685, allocations: 99.67 kB / 405.3 MB, free: 3.738 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002018/0.2687, allocations: 211.1 kB / 405.5 MB, free: 3.531 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004884/0.2692, allocations: 0.4961 MB / 406 MB, free: 3.035 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.2692, allocations: 0 / 406 MB, free: 3.035 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.2692, allocations: 0 / 406 MB, free: 3.035 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.829e-05/0.2692, allocations: 0 / 406 MB, free: 3.035 MB / 318.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.001247/0.2705, allocations: 0.6943 MB / 406.7 MB, free: 2.293 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.279e-05/0.2705, allocations: 8.031 kB / 406.7 MB, free: 2.285 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.944e-05/0.2706, allocations: 82.66 kB / 406.8 MB, free: 2.195 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.279e-05/0.2707, allocations: 44.38 kB / 406.8 MB, free: 2.152 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004312/0.2711, allocations: 285 kB / 407.1 MB, free: 1.832 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.752e-05/0.2712, allocations: 33.38 kB / 407.1 MB, free: 1.801 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.213e-05/0.2713, allocations: 44.38 kB / 407.2 MB, free: 1.758 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007612/0.272, allocations: 451.4 kB / 407.6 MB, free: 1.285 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.971e-05/0.272, allocations: 0 / 407.6 MB, free: 1.285 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.718e-05/0.2721, allocations: 20 kB / 407.6 MB, free: 1.266 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.21e-05/0.2721, allocations: 12 kB / 407.6 MB, free: 1.254 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005399/0.2727, allocations: 283.9 kB / 407.9 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001846/0.2745, allocations: 1.31 MB / 409.2 MB, free: 15.58 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004197/0.2749, allocations: 238.7 kB / 409.5 MB, free: 15.34 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003597/0.2753, allocations: 192.8 kB / 409.6 MB, free: 15.14 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.393e-05/0.2754, allocations: 4.5 kB / 409.6 MB, free: 15.14 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.288e-05/0.2754, allocations: 38.56 kB / 409.7 MB, free: 15.09 MB / 334.1 MB Notification: Performance of pre-optimization done (n=29): time 1.422e-06/0.2754, allocations: 0 / 409.7 MB, free: 15.09 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.001338/0.2767, allocations: 0.5457 MB / 410.2 MB, free: 14.52 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001112/0.2769, allocations: 243.3 kB / 410.5 MB, free: 14.23 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001873/0.2771, allocations: 203 kB / 410.7 MB, free: 14.02 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.691e-05/0.2771, allocations: 37.64 kB / 410.7 MB, free: 13.98 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001214/0.2772, allocations: 200.2 kB / 410.9 MB, free: 13.77 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.021e-05/0.2773, allocations: 102.5 kB / 411 MB, free: 13.67 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.773e-05/0.2774, allocations: 65.61 kB / 411.1 MB, free: 13.6 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001112/0.2775, allocations: 330.8 kB / 411.4 MB, free: 13.27 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001542/0.2777, allocations: 75.97 kB / 411.5 MB, free: 13.2 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000218/0.2779, allocations: 165.2 kB / 411.6 MB, free: 13 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003359/0.2783, allocations: 199.3 kB / 411.8 MB, free: 12.8 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.2783, allocations: 0 / 411.8 MB, free: 12.8 MB / 334.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0004492/0.2787, allocations: 280.8 kB / 412.1 MB, free: 12.52 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.403e-05/0.2788, allocations: 8 kB / 412.1 MB, free: 12.51 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.242e-06/0.2788, allocations: 0 / 412.1 MB, free: 12.51 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.627e-05/0.2788, allocations: 3.984 kB / 412.1 MB, free: 12.51 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003183/0.2791, allocations: 79.91 kB / 412.2 MB, free: 12.43 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.308e-06/0.2791, allocations: 3.984 kB / 412.2 MB, free: 12.43 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000227/0.2794, allocations: 35.75 kB / 412.2 MB, free: 12.39 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.094e-05/0.2794, allocations: 8 kB / 412.2 MB, free: 12.38 MB / 334.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.0001689/0.2796, allocations: 149.8 kB / 412.4 MB, free: 12.23 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.092e-05/0.2796, allocations: 23.75 kB / 412.4 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.219e-05/0.2797, allocations: 34.64 kB / 412.4 MB, free: 12.17 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.919e-06/0.2797, allocations: 11.88 kB / 412.4 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.102e-05/0.2797, allocations: 0 / 412.4 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.2798, allocations: 4 kB / 412.4 MB, free: 12.15 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001068/0.2808, allocations: 0.7749 MB / 413.2 MB, free: 11.32 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.2808, allocations: 0 / 413.2 MB, free: 11.32 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000248/0.2811, allocations: 55.97 kB / 413.3 MB, free: 11.26 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003293/0.2814, allocations: 88.73 kB / 413.4 MB, free: 11.17 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.071e-05/0.2815, allocations: 8 kB / 413.4 MB, free: 11.16 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001983/0.2835, allocations: 1.973 MB / 415.3 MB, free: 9.055 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.2835, allocations: 0 / 415.3 MB, free: 9.055 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007457/0.2842, allocations: 0.4982 MB / 415.8 MB, free: 8.531 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.057e-05/0.2843, allocations: 104.9 kB / 415.9 MB, free: 8.41 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.626e-05/0.2844, allocations: 4.062 kB / 415.9 MB, free: 8.406 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001588/0.2845, allocations: 12 kB / 416 MB, free: 8.395 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.597e-05/0.2846, allocations: 31.89 kB / 416 MB, free: 8.363 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.849e-05/0.2846, allocations: 7.938 kB / 416 MB, free: 8.355 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001223/0.2848, allocations: 148.6 kB / 416.1 MB, free: 8.211 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.2848, allocations: 0 / 416.1 MB, free: 8.211 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003897/0.2852, allocations: 115.5 kB / 416.3 MB, free: 8.098 MB / 334.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.001017/0.2862, allocations: 1.049 MB / 417.3 MB, free: 7.016 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004155/0.2866, allocations: 219.8 kB / 417.5 MB, free: 6.801 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.2866, allocations: 0 / 417.5 MB, free: 6.801 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004374/0.2871, allocations: 274.5 kB / 417.8 MB, free: 6.52 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000435/0.2875, allocations: 39.14 kB / 417.8 MB, free: 6.484 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003451/0.291, allocations: 2.883 MB / 420.7 MB, free: 3.496 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003492/0.2914, allocations: 0.7831 MB / 421.5 MB, free: 2.688 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001015/0.2915, allocations: 29.88 kB / 421.5 MB, free: 2.66 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001326/0.2916, allocations: 103.3 kB / 421.6 MB, free: 2.559 MB / 334.1 MB Notification: Performance of SimCode: time 7.11e-07/0.2916, allocations: 0 / 421.6 MB, free: 2.559 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02739/0.319, allocations: 6.06 MB / 427.7 MB, free: 12.62 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.967/10.29, allocations: 17.06 kB / 427.7 MB, free: 12.6 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CoupledInductors.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CoupledInductors_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_CoupledInductors_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_CoupledInductors.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_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