Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.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.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.3_Modelica.Electrical.Spice3.Examples.Nor") 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.3_Modelica.Electrical.Spice3.Examples.Nor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009849/0.0009849, allocations: 94.36 kB / 16.94 MB, free: 5.977 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.000982/0.0009821, allocations: 184.8 kB / 17.82 MB, free: 5.641 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.365/1.365, allocations: 205.4 MB / 224 MB, free: 13.16 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.0005647/0.000565, allocations: 12 kB / 280.7 MB, free: 3.762 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09843/0.09901, allocations: 47.59 MB / 328.3 MB, free: 4.105 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01239/0.1115, allocations: 10.87 MB / 339.2 MB, free: 9.195 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02534/0.1368, allocations: 16.68 MB / 355.9 MB, free: 8.473 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002985/0.1399, allocations: 63.5 kB / 355.9 MB, free: 8.41 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003539/0.1435, allocations: 0.8669 MB / 356.8 MB, free: 7.539 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007856/0.1513, allocations: 2.052 MB / 358.9 MB, free: 5.48 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004282/0.1557, allocations: 1.149 MB / 360 MB, free: 4.328 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01041/0.1661, allocations: 6.048 MB / 366.1 MB, free: 14.26 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008843/0.167, allocations: 399.3 kB / 366.5 MB, free: 13.84 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001393/0.1684, allocations: 0.8085 MB / 367.3 MB, free: 13.03 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001574/0.17, allocations: 0.9707 MB / 368.2 MB, free: 12.05 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003239/0.1704, allocations: 44 kB / 368.3 MB, free: 12.01 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003855/0.1742, allocations: 1.21 MB / 369.5 MB, free: 10.8 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000344/0.1746, allocations: 278 kB / 369.8 MB, free: 10.53 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008083/0.1754, allocations: 0.6014 MB / 370.4 MB, free: 9.922 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003111/0.1785, allocations: 2.559 MB / 372.9 MB, free: 7.355 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.1786, allocations: 0 / 372.9 MB, free: 7.355 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.1786, allocations: 0 / 372.9 MB, free: 7.355 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.446e-05/0.1786, allocations: 0 / 372.9 MB, free: 7.355 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: 149 * Number of variables: 149 Notification: Performance of Generate backend data structure: time 0.004906/0.1836, allocations: 3.178 MB / 376.1 MB, free: 4.105 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.621e-05/0.1836, allocations: 8.031 kB / 376.1 MB, free: 4.098 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003704/0.184, allocations: 383.4 kB / 376.5 MB, free: 3.719 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003755/0.1877, allocations: 2.388 MB / 378.9 MB, free: 1.258 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.274e-05/0.1878, allocations: 29 kB / 378.9 MB, free: 1.23 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000126/0.1879, allocations: 48 kB / 378.9 MB, free: 1.184 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001456/0.1894, allocations: 0.7928 MB / 379.7 MB, free: 396 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.389e-05/0.1894, allocations: 0 / 379.7 MB, free: 396 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.101e-05/0.1895, allocations: 16 kB / 379.7 MB, free: 380 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.932e-05/0.1895, allocations: 19.98 kB / 379.8 MB, free: 360 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1617/0.3513, allocations: 0.9131 MB / 380.7 MB, free: 53.15 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006159/0.3575, allocations: 2.99 MB / 383.7 MB, free: 52.14 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00186/0.3594, allocations: 0.8519 MB / 384.5 MB, free: 51.82 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02647/0.3859, allocations: 30.32 MB / 414.8 MB, free: 25.86 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00106/0.387, allocations: 0.6234 MB / 415.5 MB, free: 25.51 MB / 318.1 MB Notification: Performance of pre-optimization done (n=96): time 3.466e-06/0.387, allocations: 0 / 415.5 MB, free: 25.51 MB / 318.1 MB Notification: Performance of matching and sorting (n=99): time 0.0107/0.3977, allocations: 6.014 MB / 421.5 MB, free: 19.41 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.538e-05/0.3978, allocations: 73.48 kB / 421.6 MB, free: 19.33 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002444/0.4003, allocations: 2.67 MB / 424.2 MB, free: 16.64 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.401e-05/0.4004, allocations: 45.7 kB / 424.3 MB, free: 16.59 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007437/0.4011, allocations: 1.305 MB / 425.6 MB, free: 15.29 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001964/0.4013, allocations: 339.7 kB / 425.9 MB, free: 14.96 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.485e-05/0.4014, allocations: 12 kB / 425.9 MB, free: 14.95 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.4e-05/0.4014, allocations: 349.9 kB / 426.3 MB, free: 14.6 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001116/0.4026, allocations: 0.5292 MB / 426.8 MB, free: 14.07 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001152/0.4037, allocations: 0.7017 MB / 427.5 MB, free: 13.3 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001147/0.4049, allocations: 0.5652 MB / 428.1 MB, free: 12.74 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.988e-06/0.4049, allocations: 4 kB / 428.1 MB, free: 12.73 MB / 318.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.00339/0.4083, allocations: 2.102 MB / 430.2 MB, free: 10.56 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.79e-05/0.4084, allocations: 11.98 kB / 430.2 MB, free: 10.55 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001309/0.4085, allocations: 120 kB / 430.3 MB, free: 10.43 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005725/0.4091, allocations: 261.2 kB / 430.5 MB, free: 10.14 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008252/0.4099, allocations: 235.7 kB / 430.8 MB, free: 9.914 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007244/0.4172, allocations: 13.32 MB / 444.1 MB, free: 11.29 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001789/0.419, allocations: 124 kB / 444.2 MB, free: 11.17 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001389/0.4191, allocations: 56 kB / 444.3 MB, free: 11.12 MB / 334.1 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.001022/0.4202, allocations: 433.4 kB / 444.7 MB, free: 10.68 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005078/0.4207, allocations: 371.5 kB / 445.1 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005492/0.4262, allocations: 2.378 MB / 447.4 MB, free: 7.871 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.487e-05/0.4262, allocations: 8 kB / 447.4 MB, free: 7.863 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.129e-05/0.4262, allocations: 4 kB / 447.4 MB, free: 7.859 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.045e-05/0.4263, allocations: 3.984 kB / 447.4 MB, free: 7.855 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002844/0.4291, allocations: 1.55 MB / 449 MB, free: 6.277 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000183/0.4293, allocations: 116 kB / 449.1 MB, free: 6.164 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007471/0.4301, allocations: 167.8 kB / 449.3 MB, free: 6 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000637/0.4307, allocations: 268.3 kB / 449.5 MB, free: 5.707 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.577e-05/0.4308, allocations: 43.98 kB / 449.6 MB, free: 5.664 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009501/0.4403, allocations: 13.31 MB / 462.9 MB, free: 7.027 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.215e-06/0.4404, allocations: 0 / 462.9 MB, free: 7.027 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005728/0.4461, allocations: 2.733 MB / 465.6 MB, free: 4.219 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00108/0.4472, allocations: 492.4 kB / 466.1 MB, free: 3.715 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003294/0.4475, allocations: 27.94 kB / 466.1 MB, free: 3.688 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009905/0.4485, allocations: 111.9 kB / 466.2 MB, free: 3.578 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003403/0.4489, allocations: 148.7 kB / 466.4 MB, free: 3.434 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.385e-05/0.449, allocations: 47.98 kB / 466.4 MB, free: 3.387 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00235/0.4514, allocations: 1.755 MB / 468.2 MB, free: 1.625 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4514, allocations: 0 / 468.2 MB, free: 1.625 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001797/0.4532, allocations: 0.6509 MB / 468.8 MB, free: 1 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (mp1.Dinternal,mp1.Sinternal,mp2.Dinternal,mp2.Sinternal,mn1.Dinternal,mn1.Sinternal,mn2.Dinternal,mn2.Sinternal) * Number of discrete variables: 12 ($whenCondition3,$whenCondition2,$whenCondition1,vin1.T0,vin1.counter,vin1.counter2,vin2.T0,vin2.counter,vin2.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 6 (vin1.counter,vin2.counter,v.counter,vin1.counter2,vin2.counter2,v.counter2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 9 * 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 Backend phase and start with SimCode phase: time 0.001267/0.4545, allocations: 0.7747 MB / 469.6 MB, free: 396 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.004516/0.459, allocations: 2.647 MB / 472.3 MB, free: 13.59 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.459, allocations: 0 / 472.3 MB, free: 13.59 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002537/0.4616, allocations: 2.019 MB / 474.3 MB, free: 11.42 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001849/0.4634, allocations: 492.1 kB / 474.8 MB, free: 10.93 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007195/0.4706, allocations: 5.338 MB / 480.1 MB, free: 5.574 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001142/0.4718, allocations: 1.724 MB / 481.8 MB, free: 3.824 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001475/0.4733, allocations: 395.3 kB / 482.2 MB, free: 3.434 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002914/0.4736, allocations: 163.4 kB / 482.4 MB, free: 3.273 MB / 366.1 MB Notification: Performance of SimCode: time 7.62e-07/0.4736, allocations: 0 / 482.4 MB, free: 3.273 MB / 366.1 MB Notification: Performance of Templates: time 0.05692/0.5305, allocations: 33.71 MB / 0.504 GB, free: 1.523 MB / 398.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Nor/Nor.csv","../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches