Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) [: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 4.0.0+maint.om/package.mo): time 0.0009433/0.0009433, allocations: 185.7 kB / 8.137 MB, free: 2.219 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.096/1.096, allocations: 221.4 MB / 229.9 MB, free: 3.027 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008837/0.0008837, allocations: 93.3 kB / 280.8 MB, free: 1.27 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08709/0.08801, allocations: 55.82 MB / 336.6 MB, free: 9.422 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.167/0.255, allocations: 50.39 MB / 387 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09791/0.353, allocations: 103.5 MB / 490.5 MB, free: 15.24 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001868/0.3532, allocations: 72.73 kB / 490.6 MB, free: 15.17 MB / 378.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.3732/0.7264, allocations: 137.5 MB / 0.6133 GB, free: 14.9 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.235e-05/0.7265, allocations: 16 kB / 0.6133 GB, free: 14.89 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006519/0.7272, allocations: 379.4 kB / 0.6137 GB, free: 14.51 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003895/0.7311, allocations: 2.231 MB / 0.6159 GB, free: 12.29 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.164e-05/0.7311, allocations: 23.89 kB / 0.6159 GB, free: 12.27 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001413/0.7313, allocations: 28 kB / 0.6159 GB, free: 12.24 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001129/0.7324, allocations: 0.6818 MB / 0.6166 GB, free: 11.56 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00111/0.7335, allocations: 0.7266 MB / 0.6173 GB, free: 10.8 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.429e-05/0.7335, allocations: 0 / 0.6173 GB, free: 10.8 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.732e-05/0.7336, allocations: 7.906 kB / 0.6173 GB, free: 10.79 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.538e-05/0.7337, allocations: 23.98 kB / 0.6173 GB, free: 10.77 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005199/0.7389, allocations: 2.949 MB / 0.6202 GB, free: 7.797 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000644/0.7395, allocations: 431.3 kB / 0.6206 GB, free: 7.371 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001052/0.7406, allocations: 0.8291 MB / 0.6214 GB, free: 6.543 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.153/0.8936, allocations: 35.73 MB / 0.6563 GB, free: 129.8 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005621/0.8942, allocations: 483.4 kB / 0.6568 GB, free: 129.8 MB / 442.7 MB Notification: Performance of pre-optimization done (n=96): time 2.455e-06/0.8942, allocations: 3.281 kB / 0.6568 GB, free: 129.8 MB / 442.7 MB Notification: Performance of matching and sorting (n=99): time 0.005119/0.8993, allocations: 3.356 MB / 0.6601 GB, free: 128.7 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.34e-05/0.8994, allocations: 284.2 kB / 0.6603 GB, free: 128.4 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002027/0.9014, allocations: 2.024 MB / 0.6623 GB, free: 128.1 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 6.844e-05/0.9015, allocations: 34.2 kB / 0.6624 GB, free: 128.1 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002547/0.9018, allocations: 0.497 MB / 0.6628 GB, free: 128 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001696/0.9019, allocations: 318.7 kB / 0.6631 GB, free: 127.8 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.01e-05/0.902, allocations: 3.844 kB / 0.6632 GB, free: 127.8 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 5.575e-05/0.9021, allocations: 353.1 kB / 0.6635 GB, free: 127.5 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004366/0.9025, allocations: 310.1 kB / 0.6638 GB, free: 127.5 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004953/0.903, allocations: 0.5146 MB / 0.6643 GB, free: 127.2 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005226/0.9035, allocations: 367.8 kB / 0.6646 GB, free: 127.2 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/0.9036, allocations: 3.906 kB / 0.6646 GB, free: 127.2 MB / 442.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.001926/0.9055, allocations: 1.603 MB / 0.6662 GB, free: 126.7 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.256e-05/0.9055, allocations: 6.156 kB / 0.6662 GB, free: 126.7 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001554/0.9057, allocations: 123.4 kB / 0.6663 GB, free: 126.7 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005753/0.9063, allocations: 252.9 kB / 0.6666 GB, free: 126.7 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008825/0.9071, allocations: 247.2 kB / 0.6668 GB, free: 126.7 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005332/0.9125, allocations: 12.7 MB / 0.6792 GB, free: 114.7 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001207/0.9137, allocations: 121.2 kB / 0.6793 GB, free: 114.7 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001064/0.9138, allocations: 59.62 kB / 0.6794 GB, free: 114.7 MB / 442.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.0001909/0.914, allocations: 135.7 kB / 0.6795 GB, free: 114.6 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002912/0.9143, allocations: 371 kB / 0.6799 GB, free: 114.4 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004456/0.9188, allocations: 2.13 MB / 0.6819 GB, free: 114.1 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.516e-06/0.9188, allocations: 15.19 kB / 0.682 GB, free: 114.1 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.9188, allocations: 7.5 kB / 0.682 GB, free: 114.1 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.414e-06/0.9188, allocations: 3.797 kB / 0.682 GB, free: 114.1 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001396/0.9202, allocations: 1.439 MB / 0.6834 GB, free: 113.9 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001515/0.9204, allocations: 115.9 kB / 0.6835 GB, free: 113.9 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007246/0.9211, allocations: 184.7 kB / 0.6837 GB, free: 113.9 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005231/0.9216, allocations: 253.8 kB / 0.6839 GB, free: 113.8 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.91e-05/0.9217, allocations: 43.06 kB / 0.6839 GB, free: 113.8 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005322/0.9271, allocations: 12.69 MB / 0.6963 GB, free: 101.8 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.9271, allocations: 0 / 0.6963 GB, free: 101.8 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002389/0.9295, allocations: 2.038 MB / 0.6983 GB, free: 101.3 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002985/0.9325, allocations: 2.94 MB / 0.7012 GB, free: 100.3 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006331/0.9331, allocations: 0.49 MB / 0.7017 GB, free: 100 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003947/0.9335, allocations: 8.828 kB / 0.7017 GB, free: 100 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001066/0.9346, allocations: 118.2 kB / 0.7018 GB, free: 100 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002458/0.9349, allocations: 125.2 kB / 0.7019 GB, free: 100 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.338e-05/0.935, allocations: 46.58 kB / 0.702 GB, free: 100 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.001565/0.9365, allocations: 1.524 MB / 0.7034 GB, free: 99.84 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002079/0.9386, allocations: 0.6815 MB / 0.7041 GB, free: 99.84 MB / 442.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.001044/0.9397, allocations: 0.9809 MB / 0.7051 GB, free: 99.74 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0018/0.9415, allocations: 2.054 MB / 0.7071 GB, free: 98.61 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.9415, allocations: 0 / 0.7071 GB, free: 98.61 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001245/0.9427, allocations: 1.649 MB / 0.7087 GB, free: 97.48 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001765/0.9445, allocations: 0.5517 MB / 0.7092 GB, free: 97.46 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004882/0.9494, allocations: 3.487 MB / 0.7126 GB, free: 96.51 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001038/0.9505, allocations: 1.871 MB / 0.7145 GB, free: 95.78 MB / 442.7 MB Notification: Performance of SimCode: time 3.01e-07/0.9505, allocations: 0 / 0.7145 GB, free: 95.78 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nor_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nor.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1)