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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001512/0.001512, allocations: 177.7 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.688/1.688, allocations: 205.3 MB / 214.4 MB, free: 1.73 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.0009213/0.0009212, allocations: 86.48 kB / 262.4 MB, free: 1.68 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.06e-05/2.062e-05, allocations: 4 kB / 315.6 MB, free: 22.63 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.1006, allocations: 47.59 MB / 363.2 MB, free: 6.98 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3549/0.4556, allocations: 101.9 MB / 465 MB, free: 9.758 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002438/0.4559, allocations: 72.09 kB / 465.1 MB, free: 9.723 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4816/0.9375, allocations: 118.9 MB / 0.5703 GB, free: 94.58 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.595e-06/0.9375, allocations: 3.531 kB / 0.5703 GB, free: 94.58 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.994e-05/0.9376, allocations: 48.38 kB / 0.5704 GB, free: 94.58 MB / 410.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.005075/0.9427, allocations: 2.644 MB / 0.5729 GB, free: 93.14 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.198e-05/0.9427, allocations: 9.656 kB / 0.573 GB, free: 93.14 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000701/0.9434, allocations: 386.1 kB / 0.5733 GB, free: 92.95 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003728/0.9472, allocations: 2.261 MB / 0.5755 GB, free: 92.31 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.042e-05/0.9472, allocations: 18.83 kB / 0.5756 GB, free: 92.31 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001225/0.9474, allocations: 34.78 kB / 0.5756 GB, free: 92.3 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009718/0.9483, allocations: 0.6805 MB / 0.5763 GB, free: 92.3 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001005/0.9493, allocations: 0.726 MB / 0.577 GB, free: 92.18 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.441e-05/0.9494, allocations: 0 / 0.577 GB, free: 92.18 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.239e-05/0.9495, allocations: 7.266 kB / 0.577 GB, free: 92.18 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.492e-05/0.9495, allocations: 26 kB / 0.577 GB, free: 92.18 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005215/0.9547, allocations: 2.926 MB / 0.5798 GB, free: 91.33 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008438/0.9556, allocations: 0.6252 MB / 0.5805 GB, free: 91.01 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008399/0.9564, allocations: 0.8565 MB / 0.5813 GB, free: 90.69 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02886/0.9853, allocations: 35.96 MB / 0.6164 GB, free: 61.76 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006447/0.986, allocations: 0.4884 MB / 0.6169 GB, free: 61.3 MB / 410.7 MB Notification: Performance of pre-optimization done (n=96): time 3.046e-06/0.986, allocations: 0 / 0.6169 GB, free: 61.3 MB / 410.7 MB Notification: Performance of matching and sorting (n=99): time 0.006219/0.9923, allocations: 3.364 MB / 0.6202 GB, free: 57.81 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001038/0.9924, allocations: 269.8 kB / 0.6204 GB, free: 57.48 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002793/0.9952, allocations: 2.045 MB / 0.6224 GB, free: 55.43 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 9.896e-05/0.9953, allocations: 29.7 kB / 0.6225 GB, free: 55.39 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008706/0.9962, allocations: 1.296 MB / 0.6237 GB, free: 54.09 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002167/0.9964, allocations: 338.9 kB / 0.624 GB, free: 53.76 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.036e-05/0.9965, allocations: 0 / 0.624 GB, free: 53.76 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 7.056e-05/0.9966, allocations: 349.9 kB / 0.6244 GB, free: 53.41 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004119/0.997, allocations: 306.6 kB / 0.6247 GB, free: 53.11 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004851/0.9975, allocations: 0.5241 MB / 0.6252 GB, free: 52.5 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005314/0.998, allocations: 373.7 kB / 0.6255 GB, free: 52.14 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.998, allocations: 0 / 0.6255 GB, free: 52.14 MB / 410.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002302/1, allocations: 1.594 MB / 0.6271 GB, free: 50.47 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.043e-05/1, allocations: 11.94 kB / 0.6271 GB, free: 50.46 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001394/1.001, allocations: 120 kB / 0.6272 GB, free: 50.34 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005585/1.001, allocations: 252.1 kB / 0.6275 GB, free: 50.07 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008432/1.002, allocations: 231.6 kB / 0.6277 GB, free: 49.84 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006129/1.008, allocations: 12.8 MB / 0.6402 GB, free: 35.92 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00216/1.01, allocations: 112 kB / 0.6403 GB, free: 35.81 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002074/1.011, allocations: 52 kB / 0.6403 GB, free: 35.76 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.0002704/1.011, allocations: 132.8 kB / 0.6405 GB, free: 35.62 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003298/1.014, allocations: 1.527 MB / 0.6419 GB, free: 34.02 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008129/1.015, allocations: 375.5 kB / 0.6423 GB, free: 33.64 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005792/1.021, allocations: 1.898 MB / 0.6442 GB, free: 31.68 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.632e-05/1.021, allocations: 12 kB / 0.6442 GB, free: 31.66 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.106e-05/1.021, allocations: 4 kB / 0.6442 GB, free: 31.66 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.268e-05/1.021, allocations: 3.984 kB / 0.6442 GB, free: 31.66 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003632/1.024, allocations: 1.438 MB / 0.6456 GB, free: 30.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001899/1.025, allocations: 119.9 kB / 0.6457 GB, free: 30.08 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001009/1.026, allocations: 167.8 kB / 0.6459 GB, free: 29.91 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007712/1.027, allocations: 259.3 kB / 0.6461 GB, free: 29.63 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001374/1.027, allocations: 31.98 kB / 0.6461 GB, free: 29.6 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007881/1.035, allocations: 12.78 MB / 0.6586 GB, free: 15.69 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.941e-06/1.035, allocations: 0 / 0.6586 GB, free: 15.69 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004567/1.039, allocations: 2.046 MB / 0.6606 GB, free: 13.55 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001564/1.041, allocations: 0.4965 MB / 0.6611 GB, free: 13.04 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006056/1.041, allocations: 11.95 kB / 0.6611 GB, free: 13.02 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001651/1.043, allocations: 103.9 kB / 0.6612 GB, free: 12.92 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004239/1.044, allocations: 144.5 kB / 0.6614 GB, free: 12.78 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00014/1.044, allocations: 55.97 kB / 0.6614 GB, free: 12.73 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003295/1.047, allocations: 1.525 MB / 0.6629 GB, free: 11.2 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.8e-07/1.047, allocations: 4 kB / 0.6629 GB, free: 11.19 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003408/1.05, allocations: 0.6715 MB / 0.6636 GB, free: 10.52 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.00552/1.056, allocations: 3.514 MB / 0.667 GB, free: 6.992 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002121/1.058, allocations: 2.108 MB / 0.669 GB, free: 4.766 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/1.058, allocations: 0 / 0.669 GB, free: 4.766 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001345/1.06, allocations: 1.715 MB / 0.6707 GB, free: 2.93 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001937/1.061, allocations: 476.5 kB / 0.6712 GB, free: 2.465 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00704/1.069, allocations: 3.984 MB / 0.6751 GB, free: 14.45 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001174/1.07, allocations: 1.724 MB / 0.6767 GB, free: 12.7 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001317/1.071, allocations: 340.8 kB / 0.6771 GB, free: 12.36 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001223/1.072, allocations: 1.148 MB / 0.6782 GB, free: 11.21 MB / 426.7 MB Notification: Performance of SimCode: time 8.92e-07/1.072, allocations: 0 / 0.6782 GB, free: 11.21 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3275/1.4, allocations: 56.86 MB / 0.7337 GB, free: 91.48 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001447/1.4, allocations: 124.3 kB / 0.7338 GB, free: 91.29 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.74/6.14, allocations: 4 kB / 0.7338 GB, free: 91.29 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)