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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001469/0.001469, allocations: 110 kB / 20.43 MB, free: 1.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001533/0.001533, allocations: 213.2 kB / 23.74 MB, free: 4.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.543/1.543, allocations: 230.5 MB / 257.4 MB, free: 7.992 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00192/0.00192, allocations: 55.91 kB / 377.8 MB, free: 3.098 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2564/0.2583, allocations: 53.42 MB / 431.2 MB, free: 6.688 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CoupledInductors): time 0.004292/0.2626, allocations: 2.86 MB / 434 MB, free: 3.816 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001503/0.2641, allocations: 0.775 MB / 434.8 MB, free: 3.035 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001352/0.2642, allocations: 12 kB / 434.8 MB, free: 3.023 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000139/0.2643, allocations: 67.36 kB / 434.9 MB, free: 2.957 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002096/0.2646, allocations: 87.12 kB / 435 MB, free: 2.871 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003984/0.2649, allocations: 123.8 kB / 435.1 MB, free: 2.75 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005073/0.2655, allocations: 446.9 kB / 435.5 MB, free: 2.309 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003181/0.2658, allocations: 169.4 kB / 435.7 MB, free: 2.141 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003097/0.2661, allocations: 195.4 kB / 435.9 MB, free: 1.949 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002841/0.2664, allocations: 203.1 kB / 436.1 MB, free: 1.75 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.268e-05/0.2664, allocations: 44 kB / 436.1 MB, free: 1.707 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001113/0.2666, allocations: 56 kB / 436.2 MB, free: 1.652 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.75e-05/0.2666, allocations: 99.67 kB / 436.3 MB, free: 1.555 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002306/0.2669, allocations: 226.9 kB / 436.5 MB, free: 1.332 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005755/0.2674, allocations: 0.4984 MB / 437 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.2674, allocations: 0 / 437 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.2675, allocations: 0 / 437 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.047e-06/0.2675, allocations: 4 kB / 437 MB, free: 0.8359 MB / 334.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.001119/0.2686, allocations: 0.6146 MB / 437.6 MB, free: 196 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.742e-05/0.2686, allocations: 12.03 kB / 437.6 MB, free: 184 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.86e-05/0.2687, allocations: 78.7 kB / 437.7 MB, free: 96 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002385/0.269, allocations: 64.64 kB / 437.8 MB, free: 32 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003318/0.2693, allocations: 226.6 kB / 438 MB, free: 15.78 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.587e-05/0.2693, allocations: 29.38 kB / 438 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.098e-05/0.2694, allocations: 52.31 kB / 438.1 MB, free: 15.7 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007365/0.2701, allocations: 455.4 kB / 438.5 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.98e-05/0.2702, allocations: 0 / 438.5 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.022e-05/0.2702, allocations: 16 kB / 438.5 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.078e-05/0.2702, allocations: 8 kB / 438.5 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005463/0.2708, allocations: 283.9 kB / 438.8 MB, free: 14.92 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001987/0.2728, allocations: 1.267 MB / 440.1 MB, free: 13.57 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004554/0.2732, allocations: 214.7 kB / 440.3 MB, free: 13.36 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003703/0.2736, allocations: 177.4 kB / 440.5 MB, free: 13.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.766e-05/0.2736, allocations: 4 kB / 440.5 MB, free: 13.18 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.928e-05/0.2736, allocations: 38.5 kB / 440.5 MB, free: 13.13 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.443e-06/0.2736, allocations: 4 kB / 440.5 MB, free: 13.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.0014/0.275, allocations: 479.2 kB / 441 MB, free: 12.65 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001519/0.2752, allocations: 239.3 kB / 441.2 MB, free: 12.36 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002312/0.2754, allocations: 214.7 kB / 441.4 MB, free: 12.14 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.341e-05/0.2755, allocations: 37.7 kB / 441.5 MB, free: 12.1 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001544/0.2756, allocations: 196.6 kB / 441.7 MB, free: 11.9 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.738e-05/0.2757, allocations: 111.1 kB / 441.8 MB, free: 11.79 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001066/0.2758, allocations: 61.69 kB / 441.8 MB, free: 11.73 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001651/0.276, allocations: 338.8 kB / 442.2 MB, free: 11.39 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001577/0.2761, allocations: 75.95 kB / 442.2 MB, free: 11.31 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000237/0.2764, allocations: 152.9 kB / 442.4 MB, free: 11.13 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003564/0.2767, allocations: 204.2 kB / 442.6 MB, free: 10.93 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.2767, allocations: 0 / 442.6 MB, free: 10.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0004821/0.2772, allocations: 281.1 kB / 442.9 MB, free: 10.64 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.746e-05/0.2772, allocations: 4 kB / 442.9 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.2772, allocations: 0 / 442.9 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.608e-05/0.2773, allocations: 4 kB / 442.9 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003438/0.2776, allocations: 79.89 kB / 442.9 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.274e-06/0.2776, allocations: 8 kB / 442.9 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001674/0.2778, allocations: 39.72 kB / 443 MB, free: 10.51 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.054e-05/0.2778, allocations: 11.98 kB / 443 MB, free: 10.5 MB / 350.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.0001725/0.278, allocations: 153.8 kB / 443.1 MB, free: 10.34 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.806e-05/0.278, allocations: 27.8 kB / 443.2 MB, free: 10.31 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.832e-05/0.2781, allocations: 26.66 kB / 443.2 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/0.2781, allocations: 4 kB / 443.2 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.787e-06/0.2781, allocations: 0 / 443.2 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.2781, allocations: 11.92 kB / 443.2 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001136/0.2792, allocations: 0.7312 MB / 443.9 MB, free: 9.488 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.2792, allocations: 0 / 443.9 MB, free: 9.488 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002531/0.2795, allocations: 51.91 kB / 444 MB, free: 9.438 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003185/0.2798, allocations: 84.8 kB / 444.1 MB, free: 9.352 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.032e-05/0.2798, allocations: 12.03 kB / 444.1 MB, free: 9.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002199/0.282, allocations: 1.877 MB / 446 MB, free: 7.348 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/0.282, allocations: 4 kB / 446 MB, free: 7.344 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007995/0.2828, allocations: 0.4936 MB / 446.5 MB, free: 6.824 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.909e-05/0.2829, allocations: 31.8 kB / 446.5 MB, free: 6.793 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.424e-05/0.2829, allocations: 8 kB / 446.5 MB, free: 6.785 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001559/0.2831, allocations: 11.98 kB / 446.5 MB, free: 6.773 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.893e-05/0.2831, allocations: 27.95 kB / 446.5 MB, free: 6.746 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.468e-05/0.2831, allocations: 7.938 kB / 446.6 MB, free: 6.738 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001352/0.2833, allocations: 148.6 kB / 446.7 MB, free: 6.594 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2833, allocations: 0 / 446.7 MB, free: 6.594 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003702/0.2837, allocations: 103.8 kB / 446.8 MB, free: 6.492 MB / 350.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.001121/0.2848, allocations: 1.051 MB / 447.9 MB, free: 5.414 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004091/0.2852, allocations: 199.8 kB / 448 MB, free: 5.219 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.2852, allocations: 0 / 448 MB, free: 5.219 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004445/0.2856, allocations: 262.5 kB / 448.3 MB, free: 4.949 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004218/0.286, allocations: 32.38 kB / 448.3 MB, free: 4.918 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003725/0.2898, allocations: 2.904 MB / 451.2 MB, free: 1.918 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000475/0.2902, allocations: 0.787 MB / 452 MB, free: 1.105 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.802e-05/0.2903, allocations: 25.92 kB / 452.1 MB, free: 1.082 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001538/0.2905, allocations: 99.41 kB / 452.1 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of SimCode: time 5.81e-07/0.2905, allocations: 0 / 452.1 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03793/0.3284, allocations: 6.268 MB / 458.4 MB, free: 10.82 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.07/12.39, allocations: 4.312 kB / 458.4 MB, free: 10.81 MB / 366.1 MB " [Timeout remaining time 647] (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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Spice3.Examples.CoupledInductors_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 3.9984e-05 Modelica_trunk_Modelica_Electrical_Spice3_Examples_CoupledInductors.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.CoupledInductors_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,L1.iinternal,L2.iinternal,L3.iinternal Variables in the result:time,C1.vinternal,C2.vinternal,L1.iinternal,L2.iinternal,L3.iinternal [Calling sys.exit(0), Time elapsed: 15.199986969997553]