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.001068/0.001067, allocations: 102 kB / 17.2 MB, free: 6.293 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00105/0.00105, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.247/1.247, allocations: 227.4 MB / 246.3 MB, free: 10.78 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001112/0.001112, allocations: 55.75 kB / 306.3 MB, free: 0.9961 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07529/0.07642, allocations: 50.53 MB / 356.9 MB, free: 14.46 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CoupledInductors): time 0.003278/0.07972, allocations: 2.883 MB / 359.8 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009682/0.0807, allocations: 0.7595 MB / 360.5 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.271e-05/0.08081, allocations: 8 kB / 360.5 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 9.976e-05/0.08092, allocations: 39.67 kB / 360.6 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001661/0.08109, allocations: 87.3 kB / 360.7 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002773/0.08138, allocations: 111.8 kB / 360.8 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003446/0.08173, allocations: 426.8 kB / 361.2 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000265/0.082, allocations: 194 kB / 361.4 MB, free: 9.934 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002008/0.08221, allocations: 163.5 kB / 361.5 MB, free: 9.773 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000185/0.0824, allocations: 203.1 kB / 361.7 MB, free: 9.574 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.709e-05/0.08246, allocations: 32 kB / 361.8 MB, free: 9.543 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.835e-05/0.08255, allocations: 40 kB / 361.8 MB, free: 9.504 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.912e-05/0.08263, allocations: 95.61 kB / 361.9 MB, free: 9.41 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001589/0.08279, allocations: 207 kB / 362.1 MB, free: 9.207 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003665/0.08316, allocations: 494.5 kB / 362.6 MB, free: 8.723 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.407e-06/0.08317, allocations: 4 kB / 362.6 MB, free: 8.719 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.42e-07/0.08318, allocations: 0 / 362.6 MB, free: 8.719 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.819e-06/0.08319, allocations: 4 kB / 362.6 MB, free: 8.715 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.0009674/0.08416, allocations: 0.6848 MB / 363.3 MB, free: 7.98 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.77e-05/0.08421, allocations: 12.03 kB / 363.3 MB, free: 7.969 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.755e-05/0.08429, allocations: 86.7 kB / 363.4 MB, free: 7.875 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002176/0.08452, allocations: 56.45 kB / 363.4 MB, free: 7.82 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002456/0.08477, allocations: 269.2 kB / 363.7 MB, free: 7.516 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.411e-05/0.0848, allocations: 29.38 kB / 363.7 MB, free: 7.488 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.368e-05/0.08487, allocations: 48.28 kB / 363.8 MB, free: 7.441 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006212/0.0855, allocations: 459.4 kB / 364.2 MB, free: 6.965 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.557e-05/0.08552, allocations: 3.984 kB / 364.2 MB, free: 6.961 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.867e-05/0.08557, allocations: 16 kB / 364.2 MB, free: 6.945 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.019e-05/0.08558, allocations: 15.94 kB / 364.2 MB, free: 6.93 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004533/0.08604, allocations: 275.9 kB / 364.5 MB, free: 6.656 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001656/0.08771, allocations: 1.31 MB / 365.8 MB, free: 5.258 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004054/0.08812, allocations: 238.7 kB / 366.1 MB, free: 5.016 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000335/0.08847, allocations: 197.8 kB / 366.2 MB, free: 4.82 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.025e-05/0.0885, allocations: 4 kB / 366.3 MB, free: 4.816 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.622e-05/0.08853, allocations: 38.56 kB / 366.3 MB, free: 4.77 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 2.785e-06/0.08854, allocations: 7.984 kB / 366.3 MB, free: 4.762 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.001297/0.08985, allocations: 0.5501 MB / 366.8 MB, free: 4.184 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000107/0.08996, allocations: 239.3 kB / 367.1 MB, free: 3.895 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001682/0.09014, allocations: 206.8 kB / 367.3 MB, free: 3.684 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.343e-05/0.09017, allocations: 33.7 kB / 367.3 MB, free: 3.645 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001059/0.09028, allocations: 200.2 kB / 367.5 MB, free: 3.445 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.029e-05/0.09035, allocations: 98.47 kB / 367.6 MB, free: 3.348 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.584e-05/0.09044, allocations: 61.69 kB / 367.7 MB, free: 3.281 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001043/0.09055, allocations: 334.8 kB / 368 MB, free: 2.945 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001455/0.0907, allocations: 87.59 kB / 368.1 MB, free: 2.859 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001938/0.09091, allocations: 152.5 kB / 368.2 MB, free: 2.68 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003083/0.09122, allocations: 208 kB / 368.4 MB, free: 2.469 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.09123, allocations: 0 / 368.4 MB, free: 2.469 MB / 302.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0004091/0.09165, allocations: 273.1 kB / 368.7 MB, free: 2.195 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.608e-05/0.09167, allocations: 8 kB / 368.7 MB, free: 2.188 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.192e-06/0.09168, allocations: 4 kB / 368.7 MB, free: 2.184 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.241e-05/0.0917, allocations: 4 kB / 368.7 MB, free: 2.18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003004/0.092, allocations: 75.89 kB / 368.8 MB, free: 2.105 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.118e-05/0.09203, allocations: 8.062 kB / 368.8 MB, free: 2.098 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001559/0.09219, allocations: 35.67 kB / 368.8 MB, free: 2.062 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.854e-05/0.09221, allocations: 8 kB / 368.8 MB, free: 2.055 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.0001378/0.09235, allocations: 153.7 kB / 369 MB, free: 1.895 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.916e-05/0.09241, allocations: 27.66 kB / 369 MB, free: 1.867 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.393e-05/0.09248, allocations: 34.64 kB / 369 MB, free: 1.832 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.017e-06/0.09249, allocations: 4 kB / 369.1 MB, free: 1.828 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.216e-06/0.0925, allocations: 4 kB / 369.1 MB, free: 1.824 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.09251, allocations: 4 kB / 369.1 MB, free: 1.82 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009373/0.09345, allocations: 0.7711 MB / 369.8 MB, free: 0.9883 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.09347, allocations: 0 / 369.8 MB, free: 0.9883 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002498/0.09372, allocations: 55.91 kB / 369.9 MB, free: 0.9336 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003021/0.09403, allocations: 88.8 kB / 370 MB, free: 0.8438 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.833e-05/0.09406, allocations: 8.031 kB / 370 MB, free: 0.8359 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1331/0.2272, allocations: 1.825 MB / 371.8 MB, free: 19.09 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.2272, allocations: 4.75 kB / 371.8 MB, free: 19.09 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006937/0.2279, allocations: 0.4958 MB / 372.3 MB, free: 18.94 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.235e-05/0.228, allocations: 104.9 kB / 372.4 MB, free: 18.84 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.286e-05/0.228, allocations: 9.266 kB / 372.4 MB, free: 18.84 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001524/0.2282, allocations: 10.09 kB / 372.4 MB, free: 18.84 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.987e-05/0.2282, allocations: 27.33 kB / 372.5 MB, free: 18.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.401e-05/0.2282, allocations: 7.625 kB / 372.5 MB, free: 18.84 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001026/0.2283, allocations: 151.4 kB / 372.6 MB, free: 18.77 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2284, allocations: 2.375 kB / 372.6 MB, free: 18.77 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003728/0.2287, allocations: 107.5 kB / 372.7 MB, free: 18.77 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.0007635/0.2295, allocations: 1.043 MB / 373.8 MB, free: 18.07 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000365/0.2299, allocations: 215.5 kB / 374 MB, free: 18.07 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.2299, allocations: 4.797 kB / 374 MB, free: 18.07 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003308/0.2302, allocations: 279.3 kB / 374.2 MB, free: 17.93 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003672/0.2306, allocations: 33.8 kB / 374.3 MB, free: 17.92 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002598/0.2332, allocations: 3.038 MB / 377.3 MB, free: 15.83 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001748/0.2334, allocations: 0.7886 MB / 378.1 MB, free: 15.12 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.94e-05/0.2335, allocations: 26.52 kB / 378.1 MB, free: 15.11 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001098/0.2336, allocations: 101.9 kB / 378.2 MB, free: 15.04 MB / 302.1 MB Notification: Performance of SimCode: time 2.21e-07/0.2336, allocations: 1.375 kB / 378.2 MB, free: 15.04 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4512/0.6848, allocations: 5.571 MB / 383.8 MB, free: 14.5 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000188/0.685, allocations: 226.9 kB / 384 MB, free: 14.25 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.882/2.567, allocations: 4.891 kB / 384 MB, free: 14.25 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