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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001669/0.001669, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.58/1.58, allocations: 225.4 MB / 240.1 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.000956/0.000956, allocations: 91.09 kB / 292.1 MB, free: 6.047 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.169e-05/3.171e-05, allocations: 0 / 350.6 MB, free: 2.422 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1129/0.113, allocations: 51.48 MB / 402.1 MB, free: 14.89 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3625/0.4755, allocations: 105.1 MB / 0.4953 GB, free: 0.6562 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001969/0.4758, allocations: 69.59 kB / 0.4953 GB, free: 0.6211 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4952/0.971, allocations: 139.8 MB / 0.6318 GB, free: 81.66 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.395e-06/0.9711, allocations: 0 / 0.6318 GB, free: 81.66 MB / 442.7 MB Notification: Performance of Transformations before backend: time 8.741e-05/0.9712, allocations: 47.31 kB / 0.6319 GB, free: 81.66 MB / 442.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.007046/0.9782, allocations: 2.636 MB / 0.6344 GB, free: 80.06 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.568e-05/0.9783, allocations: 12.47 kB / 0.6345 GB, free: 80.06 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002526/0.9786, allocations: 96.34 kB / 0.6345 GB, free: 79.99 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001049/0.9797, allocations: 385 kB / 0.6349 GB, free: 79.8 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00611/0.9858, allocations: 2.235 MB / 0.6371 GB, free: 78.76 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.659e-05/0.9859, allocations: 36.44 kB / 0.6371 GB, free: 78.75 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001869/0.9861, allocations: 54.08 kB / 0.6372 GB, free: 78.73 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001747/0.9878, allocations: 0.7908 MB / 0.638 GB, free: 78.36 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.053e-05/0.9879, allocations: 0 / 0.638 GB, free: 78.36 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001116/0.988, allocations: 23.64 kB / 0.638 GB, free: 78.34 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.01e-05/0.988, allocations: 24.45 kB / 0.638 GB, free: 78.34 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001474/0.9895, allocations: 0.7011 MB / 0.6387 GB, free: 78.13 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007404/0.9969, allocations: 3.03 MB / 0.6416 GB, free: 76.69 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001344/0.9983, allocations: 0.6541 MB / 0.6423 GB, free: 76.36 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001518/0.9999, allocations: 0.8783 MB / 0.6431 GB, free: 76.04 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03054/1.03, allocations: 36.52 MB / 0.6788 GB, free: 46.44 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000753/1.031, allocations: 0.5343 MB / 0.6793 GB, free: 46.23 MB / 442.7 MB Notification: Performance of pre-optimization done (n=96): time 3.277e-06/1.031, allocations: 0 / 0.6793 GB, free: 46.23 MB / 442.7 MB Notification: Performance of matching and sorting (n=99): time 0.006289/1.038, allocations: 3.461 MB / 0.6827 GB, free: 44.19 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.524e-05/1.038, allocations: 269.2 kB / 0.683 GB, free: 43.88 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002978/1.041, allocations: 2.215 MB / 0.6851 GB, free: 42.84 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001314/1.041, allocations: 44.73 kB / 0.6852 GB, free: 42.79 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008675/1.042, allocations: 1.303 MB / 0.6864 GB, free: 41.63 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002434/1.042, allocations: 340.8 kB / 0.6868 GB, free: 41.34 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.727e-05/1.042, allocations: 15.84 kB / 0.6868 GB, free: 41.33 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 7.734e-05/1.042, allocations: 349.1 kB / 0.6871 GB, free: 40.99 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004891/1.043, allocations: 330 kB / 0.6874 GB, free: 40.86 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005662/1.043, allocations: 0.5359 MB / 0.688 GB, free: 40.46 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005543/1.044, allocations: 397.8 kB / 0.6883 GB, free: 40.26 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.901e-06/1.044, allocations: 7.906 kB / 0.6883 GB, free: 40.26 MB / 442.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002734/1.046, allocations: 1.678 MB / 0.69 GB, free: 39.29 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.422e-05/1.047, allocations: 6.906 kB / 0.69 GB, free: 39.29 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001503/1.047, allocations: 120 kB / 0.6901 GB, free: 39.28 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007177/1.047, allocations: 261.5 kB / 0.6904 GB, free: 39.11 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001049/1.048, allocations: 232.3 kB / 0.6906 GB, free: 39.04 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00651/1.055, allocations: 13.25 MB / 0.7035 GB, free: 25.39 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00172/1.057, allocations: 123.5 kB / 0.7036 GB, free: 25.35 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001157/1.057, allocations: 57.16 kB / 0.7037 GB, free: 25.34 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.0002284/1.057, allocations: 169.1 kB / 0.7038 GB, free: 25.18 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003345/1.057, allocations: 377.9 kB / 0.7042 GB, free: 24.99 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003943/1.061, allocations: 1.949 MB / 0.7061 GB, free: 23.39 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.108e-06/1.061, allocations: 15.98 kB / 0.7061 GB, free: 23.38 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/1.061, allocations: 4 kB / 0.7061 GB, free: 23.38 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.965e-06/1.061, allocations: 3.984 kB / 0.7061 GB, free: 23.37 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002221/1.064, allocations: 1.545 MB / 0.7076 GB, free: 21.79 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001324/1.064, allocations: 112 kB / 0.7077 GB, free: 21.68 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007021/1.065, allocations: 163.8 kB / 0.7079 GB, free: 21.52 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005347/1.065, allocations: 264.4 kB / 0.7082 GB, free: 21.23 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.296e-05/1.065, allocations: 43.94 kB / 0.7082 GB, free: 21.19 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006105/1.071, allocations: 13.24 MB / 0.7211 GB, free: 6.621 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/1.071, allocations: 0 / 0.7211 GB, free: 6.621 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003201/1.075, allocations: 2.108 MB / 0.7232 GB, free: 4.422 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001038/1.076, allocations: 0.4889 MB / 0.7237 GB, free: 3.91 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003013/1.076, allocations: 20 kB / 0.7237 GB, free: 3.891 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001018/1.077, allocations: 123.9 kB / 0.7238 GB, free: 3.773 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003195/1.077, allocations: 144.6 kB / 0.7239 GB, free: 3.629 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.194e-05/1.077, allocations: 51.97 kB / 0.724 GB, free: 3.578 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002317/1.08, allocations: 1.705 MB / 0.7257 GB, free: 1.859 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.61e-07/1.08, allocations: 0 / 0.7257 GB, free: 1.859 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001871/1.082, allocations: 0.7067 MB / 0.7263 GB, free: 1.152 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.004987/1.087, allocations: 3.476 MB / 0.7297 GB, free: 13.75 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.00316/1.09, allocations: 2.209 MB / 0.7319 GB, free: 11.39 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.979e-06/1.09, allocations: 0 / 0.7319 GB, free: 11.39 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002085/1.092, allocations: 1.791 MB / 0.7336 GB, free: 9.445 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003048/1.095, allocations: 0.5665 MB / 0.7342 GB, free: 8.891 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008417/1.103, allocations: 4.061 MB / 0.7382 GB, free: 4.781 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001396/1.105, allocations: 1.719 MB / 0.7398 GB, free: 3.031 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001548/1.106, allocations: 340.4 kB / 0.7402 GB, free: 2.695 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001329/1.108, allocations: 1.136 MB / 0.7413 GB, free: 1.562 MB / 458.7 MB Notification: Performance of SimCode: time 1.022e-06/1.108, allocations: 0 / 0.7413 GB, free: 1.562 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3424/1.45, allocations: 62.09 MB / 0.8019 GB, free: 82.54 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001319/1.45, allocations: 167.7 kB / 0.8021 GB, free: 82.31 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.9/6.35, allocations: 0 / 0.8021 GB, free: 82.31 MB / 458.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)