Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001/0.001, allocations: 199.8 kB / 8.54 MB, free: 1.832 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.079/1.079, allocations: 225.5 MB / 234.4 MB, free: 15.02 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001051/0.001051, allocations: 103 kB / 286.4 MB, free: 12.66 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09059/0.09167, allocations: 56.87 MB / 343.2 MB, free: 3.777 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1728/0.2645, allocations: 51.47 MB / 394.7 MB, free: 33.18 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09733/0.3619, allocations: 104.3 MB / 499 MB, free: 8.691 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001813/0.3621, allocations: 75.89 kB / 499.1 MB, free: 8.617 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.3535/0.7156, allocations: 137.9 MB / 0.622 GB, free: 14.33 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.382e-05/0.7157, allocations: 8 kB / 0.6221 GB, free: 14.32 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003649/0.716, allocations: 379.4 kB / 0.6224 GB, free: 13.95 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003137/0.7192, allocations: 2.24 MB / 0.6246 GB, free: 11.64 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.317e-05/0.7192, allocations: 19.91 kB / 0.6246 GB, free: 11.62 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001155/0.7193, allocations: 35.98 kB / 0.6247 GB, free: 11.58 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001043/0.7204, allocations: 0.6818 MB / 0.6253 GB, free: 10.9 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001025/0.7214, allocations: 0.7266 MB / 0.626 GB, free: 10.14 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.41e-05/0.7214, allocations: 3.906 kB / 0.626 GB, free: 10.14 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.552e-05/0.7215, allocations: 4 kB / 0.626 GB, free: 10.13 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.815e-05/0.7215, allocations: 23.92 kB / 0.6261 GB, free: 10.11 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004599/0.7262, allocations: 2.944 MB / 0.6289 GB, free: 7.102 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006187/0.7268, allocations: 439.4 kB / 0.6294 GB, free: 6.664 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009944/0.7278, allocations: 0.8243 MB / 0.6302 GB, free: 5.84 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1358/0.8636, allocations: 36.39 MB / 0.6657 GB, free: 124.4 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005623/0.8642, allocations: 480.2 kB / 0.6662 GB, free: 124.4 MB / 442.7 MB Notification: Performance of pre-optimization done (n=96): time 2.745e-06/0.8642, allocations: 0 / 0.6662 GB, free: 124.4 MB / 442.7 MB Notification: Performance of matching and sorting (n=99): time 0.005096/0.8693, allocations: 3.36 MB / 0.6694 GB, free: 123.3 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.107e-05/0.8694, allocations: 272.2 kB / 0.6697 GB, free: 123 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002017/0.8714, allocations: 2.028 MB / 0.6717 GB, free: 122.7 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 6.616e-05/0.8715, allocations: 34.23 kB / 0.6717 GB, free: 122.7 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002455/0.8717, allocations: 0.4979 MB / 0.6722 GB, free: 122.5 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001588/0.8719, allocations: 319.9 kB / 0.6725 GB, free: 122.4 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.554e-05/0.872, allocations: 3 kB / 0.6725 GB, free: 122.4 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 4.993e-05/0.872, allocations: 352.1 kB / 0.6728 GB, free: 122 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004374/0.8725, allocations: 304.8 kB / 0.6731 GB, free: 122 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005058/0.873, allocations: 0.5253 MB / 0.6737 GB, free: 121.8 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005366/0.8735, allocations: 363.7 kB / 0.674 GB, free: 121.8 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.8735, allocations: 1.969 kB / 0.674 GB, free: 121.8 MB / 442.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002011/0.8755, allocations: 1.606 MB / 0.6756 GB, free: 121.3 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.105e-05/0.8756, allocations: 8.969 kB / 0.6756 GB, free: 121.3 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001527/0.8757, allocations: 118.9 kB / 0.6757 GB, free: 121.3 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005693/0.8763, allocations: 256.9 kB / 0.6759 GB, free: 121.2 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008728/0.8772, allocations: 244.9 kB / 0.6762 GB, free: 121.2 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005357/0.8825, allocations: 12.69 MB / 0.6886 GB, free: 109.3 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001312/0.8839, allocations: 118.7 kB / 0.6887 GB, free: 109.3 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001212/0.884, allocations: 62.53 kB / 0.6887 GB, free: 109.3 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.0001938/0.8842, allocations: 139.7 kB / 0.6889 GB, free: 109.2 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002704/0.8845, allocations: 370.2 kB / 0.6892 GB, free: 109 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004544/0.889, allocations: 2.141 MB / 0.6913 GB, free: 108.6 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.977e-06/0.889, allocations: 15.27 kB / 0.6913 GB, free: 108.6 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.044e-06/0.8891, allocations: 3.938 kB / 0.6913 GB, free: 108.6 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/0.8891, allocations: 3.703 kB / 0.6913 GB, free: 108.6 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001641/0.8907, allocations: 1.433 MB / 0.6927 GB, free: 108.4 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001531/0.8909, allocations: 117.7 kB / 0.6928 GB, free: 108.4 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007578/0.8916, allocations: 183.9 kB / 0.693 GB, free: 108.4 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000566/0.8922, allocations: 253.8 kB / 0.6933 GB, free: 108.3 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.796e-05/0.8923, allocations: 36.11 kB / 0.6933 GB, free: 108.3 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005305/0.8976, allocations: 12.7 MB / 0.7057 GB, free: 96.4 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.8977, allocations: 0 / 0.7057 GB, free: 96.4 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002591/0.9003, allocations: 2.036 MB / 0.7077 GB, free: 95.82 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003075/0.9033, allocations: 2.94 MB / 0.7106 GB, free: 94.86 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007011/0.9041, allocations: 0.4922 MB / 0.711 GB, free: 94.59 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003932/0.9045, allocations: 6.469 kB / 0.711 GB, free: 94.59 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001045/0.9055, allocations: 116.4 kB / 0.7112 GB, free: 94.59 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002377/0.9058, allocations: 121.9 kB / 0.7113 GB, free: 94.58 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001053/0.9059, allocations: 53.22 kB / 0.7113 GB, free: 94.58 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.001715/0.9076, allocations: 1.523 MB / 0.7128 GB, free: 94.4 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001985/0.9096, allocations: 0.6915 MB / 0.7135 GB, free: 94.4 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.001057/0.9107, allocations: 0.99 MB / 0.7145 GB, free: 94.31 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00185/0.9125, allocations: 2.046 MB / 0.7164 GB, free: 93.18 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.055e-06/0.9125, allocations: 0 / 0.7164 GB, free: 93.18 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001219/0.9138, allocations: 1.656 MB / 0.7181 GB, free: 92.05 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001744/0.9155, allocations: 0.5416 MB / 0.7186 GB, free: 92.04 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004868/0.9204, allocations: 3.494 MB / 0.722 GB, free: 91.08 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00107/0.9215, allocations: 1.869 MB / 0.7238 GB, free: 90.35 MB / 442.7 MB Notification: Performance of SimCode: time 4.41e-07/0.9215, allocations: 0 / 0.7238 GB, free: 90.35 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nor_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nor.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1)