Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: translateModel(Modelica.Electrical.Spice3.Examples.CoupledInductors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|L1.iinternal|L2.iinternal|L3.iinternal",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CoupledInductors") translateModel(Modelica.Electrical.Spice3.Examples.CoupledInductors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|L1.iinternal|L2.iinternal|L3.iinternal",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CoupledInductors") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001377/0.001377, allocations: 109.4 kB / 18.4 MB, free: 4.68 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.001466/0.001466, allocations: 185.2 kB / 19.33 MB, free: 3.758 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.393/1.393, allocations: 205.1 MB / 225.2 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00137/0.00137, allocations: 51.94 kB / 329.2 MB, free: 3.309 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08067/0.08205, allocations: 46.62 MB / 375.8 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CoupledInductors): time 0.003793/0.08589, allocations: 2.775 MB / 378.6 MB, free: 1.793 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001456/0.08737, allocations: 0.7485 MB / 379.3 MB, free: 1.035 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002781/0.08771, allocations: 8 kB / 379.3 MB, free: 1.027 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001815/0.0879, allocations: 67.36 kB / 379.4 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003219/0.08824, allocations: 91.12 kB / 379.5 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004636/0.08871, allocations: 127.8 kB / 379.6 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005011/0.08922, allocations: 430.8 kB / 380 MB, free: 332 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003512/0.08958, allocations: 232.8 kB / 380.3 MB, free: 92 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.176/0.2656, allocations: 172 kB / 380.4 MB, free: 10.49 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000351/0.266, allocations: 196.8 kB / 380.6 MB, free: 10.49 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.805e-05/0.2661, allocations: 45.78 kB / 380.7 MB, free: 10.49 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.011e-05/0.2662, allocations: 45.44 kB / 380.7 MB, free: 10.49 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.578e-05/0.2663, allocations: 103 kB / 380.8 MB, free: 10.48 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000199/0.2665, allocations: 211.8 kB / 381 MB, free: 10.43 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005631/0.2671, allocations: 0.4908 MB / 381.5 MB, free: 10.37 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.249e-06/0.2671, allocations: 2.375 kB / 381.5 MB, free: 10.37 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2671, allocations: 0 / 381.5 MB, free: 10.37 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.238e-06/0.2671, allocations: 1.375 kB / 381.5 MB, free: 10.37 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.0009957/0.2681, allocations: 0.6828 MB / 382.2 MB, free: 9.906 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.825e-05/0.2682, allocations: 17.42 kB / 382.2 MB, free: 9.898 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.617e-05/0.2683, allocations: 43.25 kB / 382.3 MB, free: 9.879 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002625/0.2685, allocations: 287.4 kB / 382.5 MB, free: 9.645 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.88e-05/0.2686, allocations: 30.25 kB / 382.6 MB, free: 9.641 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.108e-05/0.2687, allocations: 45.17 kB / 382.6 MB, free: 9.641 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008004/0.2695, allocations: 449.6 kB / 383.1 MB, free: 9.531 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.962e-05/0.2695, allocations: 8.062 kB / 383.1 MB, free: 9.527 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.826e-05/0.2695, allocations: 17.38 kB / 383.1 MB, free: 9.527 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.56e-05/0.2696, allocations: 10.16 kB / 383.1 MB, free: 9.527 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006121/0.2702, allocations: 283.3 kB / 383.4 MB, free: 9.523 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001832/0.272, allocations: 1.295 MB / 384.7 MB, free: 8.777 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004541/0.2725, allocations: 234.1 kB / 384.9 MB, free: 8.68 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003579/0.2729, allocations: 195.2 kB / 385.1 MB, free: 8.613 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.921e-05/0.2729, allocations: 6.344 kB / 385.1 MB, free: 8.613 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.08e-05/0.2729, allocations: 37.92 kB / 385.1 MB, free: 8.57 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 1.583e-06/0.2729, allocations: 0 / 385.1 MB, free: 8.57 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.001314/0.2742, allocations: 0.5433 MB / 385.7 MB, free: 8.316 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.299e-05/0.2743, allocations: 239.5 kB / 385.9 MB, free: 8.031 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001712/0.2745, allocations: 211.8 kB / 386.1 MB, free: 7.895 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.054e-05/0.2745, allocations: 31.52 kB / 386.1 MB, free: 7.859 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.512e-05/0.2746, allocations: 203.7 kB / 386.3 MB, free: 7.691 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.308e-05/0.2747, allocations: 101.8 kB / 386.4 MB, free: 7.613 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.547e-05/0.2748, allocations: 60.3 kB / 386.5 MB, free: 7.578 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.905e-05/0.2749, allocations: 335.6 kB / 386.8 MB, free: 7.254 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000141/0.275, allocations: 75.2 kB / 386.9 MB, free: 7.227 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000186/0.2752, allocations: 156.1 kB / 387.1 MB, free: 7.113 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008036/0.276, allocations: 360.8 kB / 387.4 MB, free: 6.969 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.276, allocations: 4.844 kB / 387.4 MB, free: 6.965 MB / 318.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0004367/0.2765, allocations: 280.1 kB / 387.7 MB, free: 6.84 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.893e-05/0.2765, allocations: 5.219 kB / 387.7 MB, free: 6.84 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.571e-06/0.2765, allocations: 1.344 kB / 387.7 MB, free: 6.84 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.93e-05/0.2765, allocations: 2.594 kB / 387.7 MB, free: 6.84 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003216/0.2769, allocations: 77.55 kB / 387.8 MB, free: 6.84 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.305e-06/0.2769, allocations: 2.344 kB / 387.8 MB, free: 6.84 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001812/0.2771, allocations: 39.03 kB / 387.8 MB, free: 6.812 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.176e-05/0.2771, allocations: 14.11 kB / 387.8 MB, free: 6.809 MB / 318.1 MB Warning: Assuming fixed start value for the following 2 variables: C2.vinternal:VARIABLE(unit = "V" fixed = true protected = true ) "Capacitor voltage" type: Real C1.vinternal:VARIABLE(unit = "V" fixed = true protected = true ) "Capacitor voltage" type: Real 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.0002513/0.2773, allocations: 158.9 kB / 388 MB, free: 6.672 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.965e-05/0.2774, allocations: 28.75 kB / 388 MB, free: 6.656 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.583e-05/0.2775, allocations: 33.75 kB / 388 MB, free: 6.629 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.2775, allocations: 3.344 kB / 388 MB, free: 6.629 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.247e-05/0.2775, allocations: 0.9688 kB / 388 MB, free: 6.629 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.974e-06/0.2775, allocations: 6.109 kB / 388 MB, free: 6.629 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001015/0.2785, allocations: 0.7677 MB / 388.8 MB, free: 6.133 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.2785, allocations: 0 / 388.8 MB, free: 6.133 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002379/0.2788, allocations: 53.2 kB / 388.9 MB, free: 6.133 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002873/0.2791, allocations: 94.59 kB / 389 MB, free: 6.102 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.938e-05/0.2791, allocations: 6.797 kB / 389 MB, free: 6.098 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001644/0.2808, allocations: 1.968 MB / 390.9 MB, free: 4.406 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/0.2808, allocations: 4.594 kB / 390.9 MB, free: 4.406 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007183/0.2815, allocations: 0.5063 MB / 391.4 MB, free: 4.113 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.307e-05/0.2816, allocations: 101.5 kB / 391.5 MB, free: 4.004 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.252e-05/0.2816, allocations: 7.25 kB / 391.6 MB, free: 4 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001585/0.2818, allocations: 11.45 kB / 391.6 MB, free: 3.996 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.635e-05/0.2819, allocations: 23.64 kB / 391.6 MB, free: 3.992 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.521e-05/0.2819, allocations: 6.594 kB / 391.6 MB, free: 3.992 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001203/0.282, allocations: 154.1 kB / 391.7 MB, free: 3.891 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.282, allocations: 1.281 kB / 391.7 MB, free: 3.891 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004389/0.2825, allocations: 108.5 kB / 391.8 MB, free: 3.859 MB / 318.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.0001151/0.2826, allocations: 114.4 kB / 392 MB, free: 3.762 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004169/0.283, allocations: 212 kB / 392.2 MB, free: 3.699 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.283, allocations: 0 / 392.2 MB, free: 3.699 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004007/0.2834, allocations: 274.8 kB / 392.4 MB, free: 3.527 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003161/0.2838, allocations: 30.64 kB / 392.5 MB, free: 3.512 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001262/0.285, allocations: 0.869 MB / 393.3 MB, free: 2.934 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002301/0.2853, allocations: 0.7845 MB / 394.1 MB, free: 2.234 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.997e-05/0.2853, allocations: 27.06 kB / 394.1 MB, free: 2.223 MB / 318.1 MB Notification: Performance of SimCode: time 3.2e-07/0.2853, allocations: 0 / 394.1 MB, free: 2.223 MB / 318.1 MB Notification: Performance of Templates: time 0.007223/0.2926, allocations: 4.025 MB / 398.2 MB, free: 1.859 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CoupledInductors.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CoupledInductors.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CoupledInductors -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CoupledInductors_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/CoupledInductors/CoupledInductors.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CoupledInductors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches