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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001551/0.001555, allocations: 175 kB / 8.15 MB, free: 2.203 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.643/1.643, allocations: 205.2 MB / 213.7 MB, free: 13.86 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.001243/0.001243, allocations: 94 kB / 261.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.143e-05/1.194e-05, allocations: 0 / 314.3 MB, free: 9.031 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3092/0.3092, allocations: 47.55 MB / 361.8 MB, free: 45.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1574/0.4667, allocations: 101.6 MB / 463.4 MB, free: 460 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002736/0.467, allocations: 71.97 kB / 463.5 MB, free: 388 kB / 346.7 MB Notification: Performance of FrontEnd: time 0.5583/1.025, allocations: 119.6 MB / 0.5694 GB, free: 71.4 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.637e-05/1.025, allocations: 48 kB / 0.5694 GB, free: 71.36 MB / 394.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.007235/1.033, allocations: 2.691 MB / 0.572 GB, free: 68.61 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.652e-05/1.033, allocations: 8.031 kB / 0.5721 GB, free: 68.61 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008094/1.034, allocations: 391.3 kB / 0.5724 GB, free: 68.22 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006009/1.04, allocations: 2.254 MB / 0.5746 GB, free: 65.98 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.907e-05/1.04, allocations: 19.91 kB / 0.5746 GB, free: 65.96 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000245/1.04, allocations: 32 kB / 0.5747 GB, free: 65.93 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001824/1.042, allocations: 0.6818 MB / 0.5753 GB, free: 65.25 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001823/1.044, allocations: 0.7266 MB / 0.5761 GB, free: 64.49 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.805e-05/1.044, allocations: 3.906 kB / 0.5761 GB, free: 64.48 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001227/1.044, allocations: 3.984 kB / 0.5761 GB, free: 64.48 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.227e-05/1.044, allocations: 27.98 kB / 0.5761 GB, free: 64.45 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009452/1.053, allocations: 2.952 MB / 0.579 GB, free: 61.45 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001135/1.055, allocations: 435.3 kB / 0.5794 GB, free: 61.02 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001479/1.056, allocations: 0.8306 MB / 0.5802 GB, free: 60.19 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04784/1.104, allocations: 35.84 MB / 0.6152 GB, free: 19.2 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001047/1.105, allocations: 483.7 kB / 0.6157 GB, free: 18.71 MB / 394.7 MB Notification: Performance of pre-optimization done (n=96): time 4.508e-06/1.105, allocations: 0 / 0.6157 GB, free: 18.71 MB / 394.7 MB Notification: Performance of matching and sorting (n=99): time 0.0103/1.115, allocations: 3.358 MB / 0.6189 GB, free: 15.23 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001167/1.115, allocations: 285.7 kB / 0.6192 GB, free: 14.89 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004115/1.12, allocations: 2.041 MB / 0.6212 GB, free: 12.84 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002561/1.12, allocations: 29.7 kB / 0.6212 GB, free: 12.8 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001326/1.12, allocations: 255.8 kB / 0.6215 GB, free: 12.55 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003343/1.12, allocations: 323.2 kB / 0.6218 GB, free: 12.23 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.564e-05/1.121, allocations: 0 / 0.6218 GB, free: 12.23 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.929e-05/1.121, allocations: 354.8 kB / 0.6221 GB, free: 11.88 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000887/1.122, allocations: 314.3 kB / 0.6224 GB, free: 11.57 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001013/1.123, allocations: 0.519 MB / 0.6229 GB, free: 10.96 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001075/1.124, allocations: 370.9 kB / 0.6233 GB, free: 10.6 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.821e-06/1.124, allocations: 0 / 0.6233 GB, free: 10.6 MB / 394.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003567/1.127, allocations: 1.309 MB / 0.6246 GB, free: 9.215 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.394e-05/1.127, allocations: 4 kB / 0.6246 GB, free: 9.211 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003337/1.128, allocations: 120 kB / 0.6247 GB, free: 9.094 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00113/1.129, allocations: 260.6 kB / 0.6249 GB, free: 8.809 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001872/1.131, allocations: 243.7 kB / 0.6252 GB, free: 8.57 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01118/1.142, allocations: 12.7 MB / 0.6376 GB, free: 10.71 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001718/1.144, allocations: 124 kB / 0.6377 GB, free: 10.59 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002625/1.144, allocations: 64.17 kB / 0.6377 GB, free: 10.53 MB / 410.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 () * 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.0003632/1.144, allocations: 73.33 kB / 0.6378 GB, free: 10.45 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009198/1.145, allocations: 371.5 kB / 0.6382 GB, free: 10.09 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01001/1.155, allocations: 2.138 MB / 0.6403 GB, free: 7.871 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.495e-05/1.155, allocations: 11.94 kB / 0.6403 GB, free: 7.859 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.361e-05/1.155, allocations: 4 kB / 0.6403 GB, free: 7.855 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.275e-05/1.156, allocations: 7.922 kB / 0.6403 GB, free: 7.848 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004068/1.16, allocations: 1.439 MB / 0.6417 GB, free: 6.367 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0003579/1.16, allocations: 112 kB / 0.6418 GB, free: 6.258 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001675/1.162, allocations: 183.8 kB / 0.642 GB, free: 6.078 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001236/1.163, allocations: 256.4 kB / 0.6422 GB, free: 5.797 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003311/1.163, allocations: 31.98 kB / 0.6422 GB, free: 5.766 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1591/1.322, allocations: 12.7 MB / 0.6546 GB, free: 123.6 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.657e-06/1.323, allocations: 7.172 kB / 0.6546 GB, free: 123.6 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00788/1.33, allocations: 2.033 MB / 0.6566 GB, free: 123.3 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002451/1.333, allocations: 0.4957 MB / 0.6571 GB, free: 123 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001539/1.335, allocations: 9.125 kB / 0.6571 GB, free: 123 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004245/1.339, allocations: 127.1 kB / 0.6572 GB, free: 123 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000795/1.34, allocations: 115.6 kB / 0.6574 GB, free: 123 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002596/1.34, allocations: 48.05 kB / 0.6574 GB, free: 123 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.005697/1.346, allocations: 1.532 MB / 0.6589 GB, free: 122.9 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004176/1.35, allocations: 0.6698 MB / 0.6596 GB, free: 122.9 MB / 410.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) * 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.00311/1.353, allocations: 0.9838 MB / 0.6605 GB, free: 122.8 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005909/1.359, allocations: 2.051 MB / 0.6625 GB, free: 121.6 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.346e-05/1.359, allocations: 6.172 kB / 0.6625 GB, free: 121.6 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003968/1.363, allocations: 1.654 MB / 0.6641 GB, free: 120.5 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004813/1.368, allocations: 459.9 kB / 0.6646 GB, free: 120.5 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01619/1.384, allocations: 3.561 MB / 0.6681 GB, free: 119.5 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003208/1.388, allocations: 1.878 MB / 0.6699 GB, free: 118.8 MB / 410.7 MB Notification: Performance of SimCode: time 2.725e-06/1.388, allocations: 0 / 0.6699 GB, free: 118.8 MB / 410.7 MB Notification: Performance of Templates: time 0.4387/1.826, allocations: 143.9 MB / 0.8104 GB, free: 129 MB / 410.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/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