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.0021/0.0021, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.987/1.987, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001113/0.001113, allocations: 98.66 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.085e-05/2.069e-05, allocations: 0 / 314.8 MB, free: 9.176 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3292/0.3293, allocations: 47.57 MB / 362.3 MB, free: 45.87 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1854/0.5147, allocations: 101.6 MB / 463.9 MB, free: 0.6523 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004041/0.5152, allocations: 71.95 kB / 464 MB, free: 0.582 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.6986/1.214, allocations: 118.9 MB / 0.5693 GB, free: 72.35 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.994e-06/1.214, allocations: 0 / 0.5693 GB, free: 72.35 MB / 395.1 MB Notification: Performance of Transformations before backend: time 6.285e-05/1.214, allocations: 44 kB / 0.5693 GB, free: 72.31 MB / 395.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.006277/1.22, allocations: 2.646 MB / 0.5719 GB, free: 69.61 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.766e-05/1.22, allocations: 12.03 kB / 0.5719 GB, free: 69.6 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007249/1.221, allocations: 384.3 kB / 0.5723 GB, free: 69.22 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005463/1.226, allocations: 2.253 MB / 0.5745 GB, free: 66.98 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.659e-05/1.227, allocations: 15.98 kB / 0.5745 GB, free: 66.96 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001897/1.227, allocations: 39.91 kB / 0.5745 GB, free: 66.92 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001498/1.228, allocations: 0.6821 MB / 0.5752 GB, free: 66.24 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001445/1.23, allocations: 0.7323 MB / 0.5759 GB, free: 65.47 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.049e-05/1.23, allocations: 3.938 kB / 0.5759 GB, free: 65.46 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001076/1.23, allocations: 0 / 0.5759 GB, free: 65.46 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.804e-05/1.23, allocations: 19.98 kB / 0.5759 GB, free: 65.45 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007562/1.237, allocations: 2.933 MB / 0.5788 GB, free: 62.49 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001387/1.239, allocations: 0.636 MB / 0.5794 GB, free: 61.85 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001385/1.24, allocations: 0.8595 MB / 0.5803 GB, free: 61 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04597/1.286, allocations: 35.95 MB / 0.6154 GB, free: 19.9 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001027/1.287, allocations: 496.4 kB / 0.6158 GB, free: 19.4 MB / 395.1 MB Notification: Performance of pre-optimization done (n=96): time 4.488e-06/1.287, allocations: 0 / 0.6158 GB, free: 19.4 MB / 395.1 MB Notification: Performance of matching and sorting (n=99): time 0.009322/1.297, allocations: 3.356 MB / 0.6191 GB, free: 15.91 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001002/1.297, allocations: 281.8 kB / 0.6194 GB, free: 15.58 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003457/1.3, allocations: 2.041 MB / 0.6214 GB, free: 13.53 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002354/1.301, allocations: 33.7 kB / 0.6214 GB, free: 13.49 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001167/1.302, allocations: 1.058 MB / 0.6224 GB, free: 12.43 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003742/1.302, allocations: 327.2 kB / 0.6228 GB, free: 12.1 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.024e-05/1.302, allocations: 7.75 kB / 0.6228 GB, free: 12.1 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001042/1.302, allocations: 346.8 kB / 0.6231 GB, free: 11.75 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007434/1.303, allocations: 314.6 kB / 0.6234 GB, free: 11.44 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008508/1.304, allocations: 0.5196 MB / 0.6239 GB, free: 10.84 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008946/1.305, allocations: 374 kB / 0.6243 GB, free: 10.47 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.913e-06/1.305, allocations: 4 kB / 0.6243 GB, free: 10.47 MB / 395.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003041/1.308, allocations: 1.296 MB / 0.6255 GB, free: 9.102 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.902e-05/1.308, allocations: 8 kB / 0.6255 GB, free: 9.094 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002449/1.308, allocations: 120 kB / 0.6256 GB, free: 8.977 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009752/1.309, allocations: 256.9 kB / 0.6259 GB, free: 8.695 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001683/1.311, allocations: 231.7 kB / 0.6261 GB, free: 8.469 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01038/1.321, allocations: 12.78 MB / 0.6386 GB, free: 10.54 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002632/1.324, allocations: 108 kB / 0.6387 GB, free: 10.44 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002973/1.324, allocations: 56 kB / 0.6388 GB, free: 10.38 MB / 411.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 () * 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.0003763/1.325, allocations: 137 kB / 0.6389 GB, free: 10.24 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007807/1.326, allocations: 371.5 kB / 0.6392 GB, free: 9.875 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006926/1.333, allocations: 1.895 MB / 0.6411 GB, free: 7.898 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.065e-05/1.333, allocations: 12 kB / 0.6411 GB, free: 7.887 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.251e-05/1.333, allocations: 4 kB / 0.6411 GB, free: 7.883 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.723e-05/1.333, allocations: 3.984 kB / 0.6411 GB, free: 7.879 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003603/1.336, allocations: 1.451 MB / 0.6425 GB, free: 6.391 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002987/1.337, allocations: 116 kB / 0.6426 GB, free: 6.277 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001493/1.338, allocations: 167.8 kB / 0.6428 GB, free: 6.113 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001153/1.339, allocations: 256.3 kB / 0.643 GB, free: 5.832 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002183/1.34, allocations: 31.98 kB / 0.6431 GB, free: 5.801 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2977/1.637, allocations: 12.78 MB / 0.6555 GB, free: 85.37 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.21e-06/1.637, allocations: 0 / 0.6555 GB, free: 85.37 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004682/1.642, allocations: 2.056 MB / 0.6576 GB, free: 85 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001572/1.644, allocations: 0.4932 MB / 0.658 GB, free: 84.79 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007759/1.645, allocations: 9.828 kB / 0.658 GB, free: 84.79 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002199/1.647, allocations: 111.4 kB / 0.6582 GB, free: 84.79 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005346/1.647, allocations: 135.9 kB / 0.6583 GB, free: 84.79 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001667/1.647, allocations: 58.02 kB / 0.6583 GB, free: 84.79 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.003478/1.651, allocations: 1.529 MB / 0.6598 GB, free: 84.61 MB / 411.1 MB Notification: Performance of sort global known variables: time 7.61e-07/1.651, allocations: 0.9375 kB / 0.6598 GB, free: 84.61 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.003213/1.654, allocations: 0.6711 MB / 0.6605 GB, free: 84.61 MB / 411.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) * 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.002403/1.657, allocations: 0.9931 MB / 0.6615 GB, free: 84.51 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.003908/1.661, allocations: 2.108 MB / 0.6635 GB, free: 83.35 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 8.656e-06/1.661, allocations: 2.734 kB / 0.6635 GB, free: 83.35 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002562/1.663, allocations: 1.716 MB / 0.6652 GB, free: 82.2 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003078/1.666, allocations: 468.7 kB / 0.6656 GB, free: 82.18 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009486/1.676, allocations: 3.566 MB / 0.6691 GB, free: 81.12 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001955/1.678, allocations: 1.718 MB / 0.6708 GB, free: 80.39 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006843/1.679, allocations: 149.2 kB / 0.6709 GB, free: 80.39 MB / 411.1 MB Notification: Performance of SimCode: time 1.062e-06/1.679, allocations: 2.938 kB / 0.6709 GB, free: 80.39 MB / 411.1 MB Notification: Performance of Templates: time 0.487/2.166, allocations: 143.1 MB / 0.8107 GB, free: 122.7 MB / 443.1 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/jenkins1/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