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/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: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001004/0.001004, allocations: 180.7 kB / 8.476 MB, free: 1.824 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.061/1.061, allocations: 205.2 MB / 214.1 MB, free: 5.098 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008558/0.0008558, allocations: 93.95 kB / 262.1 MB, free: 5.137 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1438/0.1447, allocations: 52.96 MB / 315.1 MB, free: 41.4 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06059/0.2053, allocations: 47.57 MB / 362.6 MB, free: 9.871 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2108/0.4161, allocations: 101.5 MB / 464.2 MB, free: 5.355 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001803/0.4163, allocations: 71.42 kB / 464.2 MB, free: 5.344 MB / 314.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.2421/0.6584, allocations: 122.3 MB / 0.5728 GB, free: 3.195 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.359e-05/0.6584, allocations: 11.94 kB / 0.5728 GB, free: 3.184 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004655/0.6589, allocations: 391.2 kB / 0.5732 GB, free: 2.797 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003485/0.6624, allocations: 2.252 MB / 0.5754 GB, free: 484 kB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.516e-05/0.6624, allocations: 19.91 kB / 0.5754 GB, free: 464 kB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001331/0.6626, allocations: 32 kB / 0.5755 GB, free: 432 kB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.1021/0.7646, allocations: 0.6815 MB / 0.5761 GB, free: 132.9 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009858/0.7657, allocations: 0.7287 MB / 0.5768 GB, free: 132.8 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.443e-05/0.7657, allocations: 2.031 kB / 0.5768 GB, free: 132.8 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.965e-05/0.7658, allocations: 7.062 kB / 0.5768 GB, free: 132.8 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.941e-05/0.7658, allocations: 17.14 kB / 0.5769 GB, free: 132.8 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004284/0.7701, allocations: 2.955 MB / 0.5797 GB, free: 132.4 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005138/0.7706, allocations: 434.5 kB / 0.5802 GB, free: 132.4 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008014/0.7714, allocations: 0.819 MB / 0.581 GB, free: 132.4 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02601/0.7974, allocations: 35.84 MB / 0.616 GB, free: 106 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005747/0.798, allocations: 485.9 kB / 0.6164 GB, free: 106 MB / 426.7 MB Notification: Performance of pre-optimization done (n=96): time 2.435e-06/0.7981, allocations: 0 / 0.6164 GB, free: 106 MB / 426.7 MB Notification: Performance of matching and sorting (n=99): time 0.00527/0.8033, allocations: 3.369 MB / 0.6197 GB, free: 104.9 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.835e-05/0.8034, allocations: 276.6 kB / 0.62 GB, free: 104.6 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002112/0.8055, allocations: 2.042 MB / 0.622 GB, free: 104.3 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 7.049e-05/0.8056, allocations: 29.55 kB / 0.622 GB, free: 104.3 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002669/0.8059, allocations: 0.4945 MB / 0.6225 GB, free: 104.1 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001802/0.8061, allocations: 324.5 kB / 0.6228 GB, free: 103.9 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.15e-05/0.8061, allocations: 0 / 0.6228 GB, free: 103.9 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 5.942e-05/0.8062, allocations: 346.2 kB / 0.6231 GB, free: 103.6 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004466/0.8066, allocations: 313.4 kB / 0.6234 GB, free: 103.6 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005159/0.8072, allocations: 0.528 MB / 0.6239 GB, free: 103.4 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005258/0.8077, allocations: 361.3 kB / 0.6243 GB, free: 103.4 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.8077, allocations: 3.938 kB / 0.6243 GB, free: 103.4 MB / 426.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002019/0.8097, allocations: 1.616 MB / 0.6259 GB, free: 102.9 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.378e-05/0.8098, allocations: 3.344 kB / 0.6259 GB, free: 102.9 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001638/0.8099, allocations: 119.3 kB / 0.626 GB, free: 102.9 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005757/0.8105, allocations: 264.7 kB / 0.6262 GB, free: 102.8 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008954/0.8114, allocations: 242.8 kB / 0.6265 GB, free: 102.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005547/0.817, allocations: 12.7 MB / 0.6389 GB, free: 90.87 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001352/0.8184, allocations: 119.9 kB / 0.639 GB, free: 90.87 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001064/0.8185, allocations: 60.69 kB / 0.639 GB, free: 90.87 MB / 426.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.0002025/0.8187, allocations: 148.5 kB / 0.6392 GB, free: 90.76 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002701/0.819, allocations: 378.4 kB / 0.6395 GB, free: 90.57 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004913/0.8239, allocations: 2.137 MB / 0.6416 GB, free: 90.19 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.426e-06/0.8239, allocations: 7.312 kB / 0.6416 GB, free: 90.19 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.203e-06/0.8239, allocations: 10.81 kB / 0.6416 GB, free: 90.19 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.344e-06/0.8239, allocations: 3.844 kB / 0.6416 GB, free: 90.19 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001553/0.8255, allocations: 1.447 MB / 0.6431 GB, free: 90 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001555/0.8256, allocations: 118.5 kB / 0.6432 GB, free: 90 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007308/0.8264, allocations: 180.6 kB / 0.6433 GB, free: 90 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005338/0.8269, allocations: 254.1 kB / 0.6436 GB, free: 89.92 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.886e-05/0.827, allocations: 37.41 kB / 0.6436 GB, free: 89.92 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005299/0.8323, allocations: 12.69 MB / 0.656 GB, free: 77.98 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.8323, allocations: 0 / 0.656 GB, free: 77.98 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002621/0.835, allocations: 2.044 MB / 0.658 GB, free: 77.4 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003208/0.8382, allocations: 2.943 MB / 0.6609 GB, free: 76.44 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007908/0.839, allocations: 0.4937 MB / 0.6614 GB, free: 76.16 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004178/0.8394, allocations: 14.33 kB / 0.6614 GB, free: 76.16 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001061/0.8405, allocations: 121.7 kB / 0.6615 GB, free: 76.16 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002443/0.8408, allocations: 119.1 kB / 0.6616 GB, free: 76.16 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.51e-05/0.8409, allocations: 50.86 kB / 0.6617 GB, free: 76.16 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0018/0.8427, allocations: 1.529 MB / 0.6631 GB, free: 75.98 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002095/0.8448, allocations: 0.6862 MB / 0.6638 GB, free: 75.98 MB / 426.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.001141/0.8459, allocations: 0.9966 MB / 0.6648 GB, free: 75.88 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001939/0.8479, allocations: 2.053 MB / 0.6668 GB, free: 74.75 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.8479, allocations: 0 / 0.6668 GB, free: 74.75 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001331/0.8492, allocations: 1.653 MB / 0.6684 GB, free: 73.62 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001258/0.8505, allocations: 452.9 kB / 0.6688 GB, free: 73.6 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005257/0.8558, allocations: 3.506 MB / 0.6723 GB, free: 72.62 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001282/0.8571, allocations: 1.87 MB / 0.6741 GB, free: 71.89 MB / 426.7 MB Notification: Performance of SimCode: time 6.51e-07/0.8571, allocations: 3.656 kB / 0.6741 GB, free: 71.89 MB / 426.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nor_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nor.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1)