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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000858/0.000858, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008232/0.0008232, allocations: 153.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8806/0.8806, allocations: 173.4 MB / 200.4 MB, free: 9.422 MB / 186.7 MB " [Timeout remaining time 179] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.613e-06/1.613e-06, allocations: 0 / 318.4 MB, free: 6.352 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.331e-05/1.492e-05, allocations: 2.281 kB / 318.4 MB, free: 6.348 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CoupledInductors): time 0.002682/0.002697, allocations: 2.557 MB / 321 MB, free: 3.773 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001035/0.003732, allocations: 0.6931 MB / 321.7 MB, free: 3.074 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001122/0.003844, allocations: 8 kB / 321.7 MB, free: 3.066 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 9.381e-05/0.003938, allocations: 71.34 kB / 321.8 MB, free: 2.996 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001655/0.004104, allocations: 103 kB / 321.9 MB, free: 2.895 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003072/0.004411, allocations: 123.7 kB / 322 MB, free: 2.773 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003524/0.004763, allocations: 466.6 kB / 322.4 MB, free: 2.312 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002314/0.004995, allocations: 157.4 kB / 322.6 MB, free: 2.156 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002619/0.005257, allocations: 275.5 kB / 322.9 MB, free: 1.887 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001569/0.005414, allocations: 143.6 kB / 323 MB, free: 1.746 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 5.005e-05/0.005464, allocations: 44 kB / 323 MB, free: 1.703 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.948e-05/0.005503, allocations: 48 kB / 323.1 MB, free: 1.656 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.63e-05/0.005559, allocations: 103.7 kB / 323.2 MB, free: 1.555 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 9.702e-05/0.005656, allocations: 151.6 kB / 323.3 MB, free: 1.406 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000332/0.005988, allocations: 0.5179 MB / 323.9 MB, free: 0.8867 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.014e-06/0.00599, allocations: 0 / 323.9 MB, free: 0.8867 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.005991, allocations: 0 / 323.9 MB, free: 0.8867 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.721e-06/0.005997, allocations: 0 / 323.9 MB, free: 0.8867 MB / 282.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.0006879/0.006685, allocations: 0.6146 MB / 324.5 MB, free: 248 kB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.648e-05/0.006721, allocations: 8.922 kB / 324.5 MB, free: 240 kB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.183e-05/0.006783, allocations: 86.72 kB / 324.6 MB, free: 144 kB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.227e-05/0.006836, allocations: 48.66 kB / 324.6 MB, free: 96 kB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002168/0.007052, allocations: 209.9 kB / 324.8 MB, free: 15.86 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.035e-05/0.007073, allocations: 33.38 kB / 324.9 MB, free: 15.82 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.698e-05/0.00712, allocations: 44.38 kB / 324.9 MB, free: 15.78 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005076/0.007627, allocations: 0.6208 MB / 325.5 MB, free: 15.09 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.376e-05/0.007641, allocations: 4.141 kB / 325.5 MB, free: 15.08 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.514e-05/0.007666, allocations: 24.12 kB / 325.5 MB, free: 15.06 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.167e-06/0.007675, allocations: 12 kB / 325.6 MB, free: 15.05 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003249/0.008, allocations: 283.8 kB / 325.8 MB, free: 14.77 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00116/0.00916, allocations: 1.163 MB / 327 MB, free: 13.52 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002995/0.00946, allocations: 218.7 kB / 327.2 MB, free: 13.3 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002255/0.009685, allocations: 181.3 kB / 327.4 MB, free: 13.12 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.672e-05/0.009702, allocations: 8 kB / 327.4 MB, free: 13.11 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.527e-05/0.009727, allocations: 34.55 kB / 327.4 MB, free: 13.07 MB / 298.7 MB Notification: Performance of pre-optimization done (n=29): time 1.382e-06/0.009728, allocations: 4 kB / 327.4 MB, free: 13.07 MB / 298.7 MB Notification: Performance of matching and sorting (n=29): time 0.000797/0.01053, allocations: 466.4 kB / 327.9 MB, free: 12.6 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.296e-05/0.0106, allocations: 239.3 kB / 328.1 MB, free: 12.31 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001291/0.01073, allocations: 203.1 kB / 328.3 MB, free: 12.11 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.053e-05/0.01075, allocations: 37.7 kB / 328.4 MB, free: 12.06 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.597e-05/0.01083, allocations: 200.6 kB / 328.6 MB, free: 11.86 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.942e-05/0.01088, allocations: 111.1 kB / 328.7 MB, free: 11.75 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.294e-05/0.01095, allocations: 61.69 kB / 328.7 MB, free: 11.69 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.23e-05/0.01103, allocations: 338.8 kB / 329.1 MB, free: 11.35 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.599e-05/0.01112, allocations: 75.97 kB / 329.1 MB, free: 11.27 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001822/0.01131, allocations: 341.6 kB / 329.5 MB, free: 10.87 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002143/0.01152, allocations: 199.3 kB / 329.7 MB, free: 10.66 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.01152, allocations: 0 / 329.7 MB, free: 10.66 MB / 298.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0002743/0.0118, allocations: 273.2 kB / 329.9 MB, free: 10.39 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.328e-05/0.01181, allocations: 7.938 kB / 329.9 MB, free: 10.38 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.411e-06/0.01182, allocations: 8.062 kB / 329.9 MB, free: 10.38 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.254e-05/0.01183, allocations: 3.984 kB / 329.9 MB, free: 10.37 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001716/0.012, allocations: 75.91 kB / 330 MB, free: 10.3 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.51e-06/0.01201, allocations: 3.984 kB / 330 MB, free: 10.29 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.202e-05/0.01209, allocations: 39.73 kB / 330.1 MB, free: 10.25 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.487e-05/0.0121, allocations: 11.98 kB / 330.1 MB, free: 10.24 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.874e-05/0.0122, allocations: 149.8 kB / 330.2 MB, free: 10.09 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.401e-05/0.01224, allocations: 23.86 kB / 330.2 MB, free: 10.06 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.978e-05/0.01228, allocations: 38.58 kB / 330.3 MB, free: 10.03 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/0.01228, allocations: 8 kB / 330.3 MB, free: 10.02 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.295e-06/0.01229, allocations: 0 / 330.3 MB, free: 10.02 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.01229, allocations: 3.938 kB / 330.3 MB, free: 10.02 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006616/0.01295, allocations: 0.7038 MB / 331 MB, free: 9.258 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.01295, allocations: 0 / 331 MB, free: 9.258 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001342/0.01309, allocations: 55.91 kB / 331 MB, free: 9.203 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000208/0.0133, allocations: 92.73 kB / 331.1 MB, free: 9.109 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.421e-05/0.01331, allocations: 8.031 kB / 331.1 MB, free: 9.102 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001241/0.01455, allocations: 1.85 MB / 333 MB, free: 7.133 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.01455, allocations: 4.031 kB / 333 MB, free: 7.129 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004946/0.01505, allocations: 0.5021 MB / 333.5 MB, free: 6.602 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.932e-05/0.01508, allocations: 27.78 kB / 333.5 MB, free: 6.574 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.501e-05/0.0151, allocations: 4.062 kB / 333.5 MB, free: 6.57 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001096/0.01521, allocations: 12 kB / 333.5 MB, free: 6.559 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.318e-05/0.01527, allocations: 23.95 kB / 333.6 MB, free: 6.535 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.669e-06/0.01527, allocations: 7.984 kB / 333.6 MB, free: 6.527 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.767e-05/0.01536, allocations: 152.6 kB / 333.7 MB, free: 6.379 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01536, allocations: 0 / 333.7 MB, free: 6.379 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002444/0.01561, allocations: 111.7 kB / 333.8 MB, free: 6.27 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 (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.0006708/0.01628, allocations: 1.044 MB / 334.9 MB, free: 5.195 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002606/0.01654, allocations: 199.8 kB / 335.1 MB, free: 5 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.01654, allocations: 3.938 kB / 335.1 MB, free: 4.996 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002688/0.01681, allocations: 262.5 kB / 335.3 MB, free: 4.727 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002559/0.01706, allocations: 43.95 kB / 335.4 MB, free: 4.684 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002123/0.01919, allocations: 2.797 MB / 338.2 MB, free: 1.773 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001123/0.0193, allocations: 180.8 kB / 338.4 MB, free: 1.574 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.144e-05/0.01936, allocations: 25.92 kB / 338.4 MB, free: 1.547 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.737e-05/0.01946, allocations: 104.5 kB / 338.5 MB, free: 1.445 MB / 298.7 MB Notification: Performance of SimCode: time 6.11e-07/0.01946, allocations: 0 / 338.5 MB, free: 1.445 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0218/0.04126, allocations: 6.891 MB / 345.4 MB, free: 10.72 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.172/7.214, allocations: 11.81 kB / 345.4 MB, free: 10.71 MB / 314.7 MB " [Timeout remaining time 653] (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 --stepSize=3.9984e-05 --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) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CoupledInductors_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/CoupledInductors/CoupledInductors.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CoupledInductors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.886656575836241]