Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Nor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica.Electrical.Spice3.Examples.Nor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001727/0.001728, allocations: 179.5 kB / 16.41 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.305/1.305, allocations: 205.4 MB / 222.5 MB, free: 9.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007358/0.0007358, allocations: 90.3 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002945/0.0002948, allocations: 12 kB / 327 MB, free: 204 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2015/0.2018, allocations: 47.57 MB / 374.5 MB, free: 45.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.007436/0.2092, allocations: 11.97 MB / 386.5 MB, free: 35.89 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01427/0.2235, allocations: 17.61 MB / 404.1 MB, free: 19.2 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001419/0.225, allocations: 67.44 kB / 404.2 MB, free: 19.14 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001812/0.2268, allocations: 0.8399 MB / 405 MB, free: 18.29 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004307/0.2311, allocations: 1.805 MB / 406.8 MB, free: 16.47 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002582/0.2337, allocations: 1.061 MB / 407.9 MB, free: 15.41 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.005751/0.2395, allocations: 5.891 MB / 413.8 MB, free: 9.496 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005029/0.24, allocations: 399.3 kB / 414.2 MB, free: 9.074 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007074/0.2407, allocations: 0.8357 MB / 415 MB, free: 8.234 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006741/0.2414, allocations: 0.9669 MB / 416 MB, free: 7.262 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001351/0.2416, allocations: 51.98 kB / 416 MB, free: 7.211 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002439/0.244, allocations: 1.07 MB / 417.1 MB, free: 6.141 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001667/0.2442, allocations: 274 kB / 417.4 MB, free: 5.871 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003315/0.2445, allocations: 0.6015 MB / 418 MB, free: 5.262 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001554/0.2461, allocations: 2.652 MB / 420.6 MB, free: 2.602 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.2461, allocations: 0 / 420.6 MB, free: 2.602 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2461, allocations: 0 / 420.6 MB, free: 2.602 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.638e-05/0.2461, allocations: 0 / 420.6 MB, free: 2.602 MB / 298.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.003586/0.2497, allocations: 3.198 MB / 423.8 MB, free: 15.33 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.212e-05/0.2498, allocations: 8.031 kB / 423.8 MB, free: 15.32 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003343/0.2501, allocations: 387.4 kB / 424.2 MB, free: 14.94 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00309/0.2532, allocations: 2.399 MB / 426.6 MB, free: 12.47 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.938e-05/0.2532, allocations: 32.98 kB / 426.6 MB, free: 12.44 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001101/0.2534, allocations: 48 kB / 426.7 MB, free: 12.39 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001363/0.2547, allocations: 0.7889 MB / 427.5 MB, free: 11.6 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.386e-05/0.2548, allocations: 0 / 427.5 MB, free: 11.6 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.618e-05/0.2548, allocations: 16 kB / 427.5 MB, free: 11.58 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.854e-05/0.2549, allocations: 23.98 kB / 427.5 MB, free: 11.56 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001675/0.2565, allocations: 0.9139 MB / 428.4 MB, free: 10.64 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004244/0.2608, allocations: 3.017 MB / 431.4 MB, free: 7.562 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001709/0.2625, allocations: 0.8542 MB / 432.3 MB, free: 6.703 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001422/0.264, allocations: 0.9878 MB / 433.3 MB, free: 5.711 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02661/0.2906, allocations: 30.17 MB / 463.5 MB, free: 3.43 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001117/0.2917, allocations: 0.6348 MB / 464.1 MB, free: 2.789 MB / 346.7 MB Notification: Performance of pre-optimization done (n=96): time 3.226e-06/0.2917, allocations: 0 / 464.1 MB, free: 2.789 MB / 346.7 MB Notification: Performance of matching and sorting (n=99): time 0.01213/0.3039, allocations: 5.721 MB / 469.8 MB, free: 12.81 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.563e-05/0.304, allocations: 64.41 kB / 469.9 MB, free: 12.73 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003145/0.3071, allocations: 2.686 MB / 472.6 MB, free: 10.04 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001055/0.3072, allocations: 41.7 kB / 472.6 MB, free: 9.988 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001046/0.3083, allocations: 1.296 MB / 473.9 MB, free: 8.688 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000274/0.3086, allocations: 335.2 kB / 474.2 MB, free: 8.355 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.122e-05/0.3086, allocations: 24 kB / 474.2 MB, free: 8.332 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001332/0.3088, allocations: 349.9 kB / 474.6 MB, free: 7.984 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001277/0.3101, allocations: 0.5293 MB / 475.1 MB, free: 7.453 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001357/0.3114, allocations: 0.7056 MB / 475.8 MB, free: 6.684 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001291/0.3127, allocations: 0.573 MB / 476.4 MB, free: 6.109 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.516e-06/0.3127, allocations: 0 / 476.4 MB, free: 6.109 MB / 362.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003982/0.3167, allocations: 2.093 MB / 478.5 MB, free: 3.938 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.359e-05/0.3168, allocations: 12.12 kB / 478.5 MB, free: 3.93 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001406/0.3169, allocations: 128 kB / 478.6 MB, free: 3.805 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006835/0.3176, allocations: 260.4 kB / 478.9 MB, free: 3.52 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009035/0.3186, allocations: 235.6 kB / 479.1 MB, free: 3.289 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00886/0.3274, allocations: 13.24 MB / 492.4 MB, free: 4.719 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001552/0.329, allocations: 124 kB / 492.5 MB, free: 4.598 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001297/0.3292, allocations: 56 kB / 492.5 MB, free: 4.543 MB / 378.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.0008971/0.3301, allocations: 429.5 kB / 492.9 MB, free: 4.113 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003956/0.3305, allocations: 371.5 kB / 493.3 MB, free: 3.746 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005066/0.3355, allocations: 2.357 MB / 495.7 MB, free: 1.309 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.321e-05/0.3356, allocations: 12 kB / 495.7 MB, free: 1.297 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.476e-06/0.3356, allocations: 4 kB / 495.7 MB, free: 1.293 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.117e-06/0.3356, allocations: 3.984 kB / 495.7 MB, free: 1.289 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00198/0.3376, allocations: 1.551 MB / 497.2 MB, free: 15.68 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001493/0.3378, allocations: 116 kB / 497.4 MB, free: 15.57 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007406/0.3385, allocations: 167.8 kB / 497.5 MB, free: 15.41 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006331/0.3391, allocations: 260.3 kB / 497.8 MB, free: 15.12 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.953e-05/0.3393, allocations: 43.98 kB / 497.8 MB, free: 15.08 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008531/0.3478, allocations: 13.24 MB / 0.4991 GB, free: 0.5117 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.117e-06/0.3478, allocations: 3.953 kB / 0.4991 GB, free: 0.5078 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1476/0.4955, allocations: 2.729 MB / 0.5017 GB, free: 126.2 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007487/0.4963, allocations: 499 kB / 0.5022 GB, free: 126.1 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002871/0.4965, allocations: 21.58 kB / 0.5022 GB, free: 126.1 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001006/0.4976, allocations: 109.6 kB / 0.5023 GB, free: 126.1 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003087/0.4979, allocations: 153.6 kB / 0.5025 GB, free: 126.1 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001194/0.498, allocations: 51.11 kB / 0.5025 GB, free: 126.1 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002087/0.5001, allocations: 1.75 MB / 0.5042 GB, free: 125.9 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5001, allocations: 4.422 kB / 0.5042 GB, free: 125.9 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001443/0.5016, allocations: 0.6521 MB / 0.5049 GB, free: 125.9 MB / 394.7 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.001042/0.5026, allocations: 0.778 MB / 0.5056 GB, free: 125.8 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003642/0.5063, allocations: 2.64 MB / 0.5082 GB, free: 124.4 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.5063, allocations: 1.188 kB / 0.5082 GB, free: 124.4 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002135/0.5084, allocations: 2.016 MB / 0.5102 GB, free: 122.9 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001691/0.5101, allocations: 0.4911 MB / 0.5107 GB, free: 122.7 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005298/0.5154, allocations: 5.414 MB / 0.516 GB, free: 119.7 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006908/0.5161, allocations: 1.662 MB / 0.5176 GB, free: 118.4 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003264/0.5165, allocations: 175.4 kB / 0.5178 GB, free: 118.2 MB / 394.7 MB Notification: Performance of SimCode: time 5.21e-07/0.5165, allocations: 0 / 0.5178 GB, free: 118.2 MB / 394.7 MB Notification: Performance of Templates: time 0.2248/0.7413, allocations: 154.6 MB / 0.6687 GB, free: 147 MB / 426.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Nor.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Nor.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Nor --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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_cpp_Modelica.Electrical.Spice3.Examples.Nor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches