Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nor.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.Nor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mn1.Dinternal|mn1.Sinternal|mn2.Dinternal|mn2.Sinternal|mp1.Dinternal|mp1.Sinternal|mp2.Dinternal|mp2.Sinternal",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nor") Notification: Performance of loadModel(Modelica): time 1.75/1.75, allocations: 171.2 MB / 186.7 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003452/0.0003453, allocations: 8 kB / 233.9 MB, free: 2.391 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09668/0.09704, allocations: 38.77 MB / 272.6 MB, free: 11.54 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.0268/0.1239, allocations: 10.93 MB / 283.6 MB, free: 0.5703 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.305/0.4289, allocations: 16.65 MB / 300.2 MB, free: 8.535 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003266/0.4322, allocations: 63.69 kB / 300.3 MB, free: 8.535 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005901/0.4382, allocations: 0.8755 MB / 301.1 MB, free: 8.531 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009326/0.4476, allocations: 2.045 MB / 303.2 MB, free: 8.516 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005198/0.4528, allocations: 1.15 MB / 304.3 MB, free: 8.508 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.02206/0.4749, allocations: 5.452 MB / 309.8 MB, free: 8.379 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001393/0.4764, allocations: 398.6 kB / 310.2 MB, free: 8.227 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002792/0.4792, allocations: 0.8077 MB / 311 MB, free: 8.227 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003058/0.4823, allocations: 0.964 MB / 312 MB, free: 8.227 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006049/0.483, allocations: 43.25 kB / 312 MB, free: 8.227 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008483/0.4915, allocations: 1.222 MB / 313.2 MB, free: 8.223 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000889/0.4924, allocations: 271.9 kB / 313.5 MB, free: 8.223 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001629/0.4941, allocations: 0.6034 MB / 314.1 MB, free: 8.137 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004842/0.4989, allocations: 2.554 MB / 316.6 MB, free: 7.484 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.499, allocations: 0 / 316.6 MB, free: 7.484 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.976e-06/0.499, allocations: 0 / 316.6 MB, free: 7.484 MB / 250.7 MB Notification: Performance of Transformations before backend: time 8.043e-05/0.4991, allocations: 0 / 316.6 MB, free: 7.484 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 149 * Number of variables: 149 Notification: Performance of Generate backend data structure: time 0.007119/0.5062, allocations: 3.178 MB / 319.8 MB, free: 5.355 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.877e-05/0.5063, allocations: 8.75 kB / 319.8 MB, free: 5.355 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006741/0.507, allocations: 382.6 kB / 320.2 MB, free: 5.164 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005549/0.5125, allocations: 2.386 MB / 322.6 MB, free: 3.891 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.716e-05/0.5126, allocations: 39.31 kB / 322.6 MB, free: 3.883 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001799/0.5128, allocations: 46.31 kB / 322.7 MB, free: 3.883 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002262/0.5151, allocations: 0.7843 MB / 323.5 MB, free: 3.66 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.211e-05/0.5151, allocations: 0 / 323.5 MB, free: 3.66 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001088/0.5152, allocations: 24.86 kB / 323.5 MB, free: 3.656 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.688e-05/0.5153, allocations: 19.08 kB / 323.5 MB, free: 3.652 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002884/0.5182, allocations: 0.9177 MB / 324.4 MB, free: 3.348 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007102/0.5253, allocations: 3 MB / 327.4 MB, free: 1.258 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002785/0.5281, allocations: 0.8537 MB / 328.3 MB, free: 0.6875 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05663/0.5848, allocations: 30.32 MB / 358.6 MB, free: 0.6211 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002758/0.5876, allocations: 0.6262 MB / 359.2 MB, free: 132 kB / 282.7 MB Notification: Performance of pre-optimization done (n=96): time 7.955e-06/0.5876, allocations: 0 / 359.2 MB, free: 132 kB / 282.7 MB Notification: Performance of matching and sorting (n=99): time 0.02944/0.6171, allocations: 6.023 MB / 365.2 MB, free: 10.62 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.195e-05/0.6172, allocations: 62.72 kB / 365.3 MB, free: 10.55 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006706/0.6239, allocations: 2.678 MB / 368 MB, free: 8.535 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002935/0.6242, allocations: 39.89 kB / 368 MB, free: 8.5 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002154/0.6264, allocations: 1.296 MB / 369.3 MB, free: 7.648 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000696/0.6271, allocations: 342.5 kB / 369.6 MB, free: 7.32 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001519/0.6273, allocations: 24 kB / 369.7 MB, free: 7.297 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002107/0.6275, allocations: 341.9 kB / 370 MB, free: 6.957 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003237/0.6308, allocations: 0.5293 MB / 370.5 MB, free: 6.43 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003425/0.6342, allocations: 0.7056 MB / 371.2 MB, free: 5.66 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00328/0.6375, allocations: 0.5691 MB / 371.8 MB, free: 5.094 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.013e-06/0.6376, allocations: 0 / 371.8 MB, free: 5.094 MB / 298.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.009705/0.6473, allocations: 2.097 MB / 373.9 MB, free: 2.918 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.352e-05/0.6474, allocations: 8 kB / 373.9 MB, free: 2.91 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003749/0.6478, allocations: 124 kB / 374 MB, free: 2.789 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001467/0.6493, allocations: 265 kB / 374.3 MB, free: 2.5 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001743/0.651, allocations: 236.5 kB / 374.5 MB, free: 2.27 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0132/0.6642, allocations: 13.32 MB / 387.8 MB, free: 3.633 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002531/0.6668, allocations: 127.9 kB / 388 MB, free: 3.508 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002452/0.6671, allocations: 60 kB / 388 MB, free: 3.449 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 21 ($PRE.v.counter,v.counter,$PRE.vin2.counter,vin2.counter,$PRE.vin1.counter,vin1.counter,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.vin1.T0,vin1.T0,$PRE.vin1.counter2,vin1.counter2,$PRE.vin2.T0,vin2.T0,$PRE.vin2.counter2,vin2.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (97): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001321/0.6684, allocations: 428.5 kB / 388.4 MB, free: 3.023 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008215/0.6693, allocations: 371.5 kB / 388.8 MB, free: 2.656 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009283/0.6785, allocations: 2.352 MB / 391.2 MB, free: 228 kB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.723e-05/0.6786, allocations: 7.984 kB / 391.2 MB, free: 220 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002663/0.6789, allocations: 116 kB / 391.3 MB, free: 104 kB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001651/0.6805, allocations: 498.7 kB / 391.8 MB, free: 15.59 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006878/0.6813, allocations: 20 kB / 391.8 MB, free: 15.57 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001979/0.6833, allocations: 111.9 kB / 391.9 MB, free: 15.46 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005333/0.6838, allocations: 148.7 kB / 392 MB, free: 15.32 MB / 330.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.008516/0.6923, allocations: 1.767 MB / 393.8 MB, free: 13.54 MB / 330.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.008965/0.7014, allocations: 2.439 MB / 396.3 MB, free: 11.07 MB / 330.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.002484/0.7039, allocations: 0.5817 MB / 396.8 MB, free: 10.49 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.003761/0.7077, allocations: 1.751 MB / 398.6 MB, free: 8.734 MB / 330.7 MB Notification: Performance of Backend: time 6.31e-07/0.7077, allocations: 4 kB / 398.6 MB, free: 8.73 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.007652/0.7153, allocations: 2.94 MB / 401.5 MB, free: 5.816 MB / 330.7 MB Notification: Performance of SimCode: time 0.01323/0.7286, allocations: 6.43 MB / 408 MB, free: 15.3 MB / 346.7 MB Notification: Performance of Templates: time 0.3197/1.048, allocations: 36.13 MB / 444.1 MB, free: 131.2 MB / 362.7 MB