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.00121/0.00121, allocations: 202 kB / 17.08 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.284/1.284, allocations: 227.2 MB / 245 MB, free: 7.594 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008493/0.0008492, allocations: 97.19 kB / 297.2 MB, free: 6.16 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002625/0.0002627, allocations: 4 kB / 358 MB, free: 9.426 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2199/0.2202, allocations: 51.48 MB / 409.5 MB, free: 26.69 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1215/0.3418, allocations: 105.1 MB / 0.5025 GB, free: 1.414 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002736/0.3421, allocations: 72.94 kB / 0.5026 GB, free: 1.344 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4506/0.7927, allocations: 139.8 MB / 0.6391 GB, free: 1.586 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.575e-06/0.7927, allocations: 0 / 0.6391 GB, free: 1.586 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.015e-05/0.7928, allocations: 43.94 kB / 0.6392 GB, free: 1.543 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.007171/0.8, allocations: 3.314 MB / 0.6424 GB, free: 14.16 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.101e-05/0.8001, allocations: 8.031 kB / 0.6424 GB, free: 14.15 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002328/0.8003, allocations: 98.84 kB / 0.6425 GB, free: 14.05 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005744/0.8009, allocations: 383.4 kB / 0.6429 GB, free: 13.67 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004302/0.8052, allocations: 2.263 MB / 0.6451 GB, free: 11.33 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.128e-05/0.8053, allocations: 33 kB / 0.6451 GB, free: 11.3 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001515/0.8054, allocations: 51.98 kB / 0.6452 GB, free: 11.25 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001719/0.8071, allocations: 0.8924 MB / 0.646 GB, free: 10.32 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.369e-05/0.8072, allocations: 3.938 kB / 0.646 GB, free: 10.31 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.847e-05/0.8073, allocations: 23.98 kB / 0.6461 GB, free: 10.29 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.387e-05/0.8073, allocations: 23.98 kB / 0.6461 GB, free: 10.27 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001756/0.809, allocations: 0.91 MB / 0.647 GB, free: 9.352 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005893/0.8149, allocations: 3.042 MB / 0.65 GB, free: 6.246 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001879/0.8169, allocations: 0.8535 MB / 0.6508 GB, free: 5.379 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2328/1.05, allocations: 36.4 MB / 0.6863 GB, free: 74.13 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009974/1.051, allocations: 0.6199 MB / 0.6869 GB, free: 74.07 MB / 442.7 MB Notification: Performance of pre-optimization done (n=96): time 2.524e-06/1.051, allocations: 0 / 0.6869 GB, free: 74.07 MB / 442.7 MB Notification: Performance of matching and sorting (n=99): time 0.01105/1.062, allocations: 6.079 MB / 0.6929 GB, free: 71.81 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.376e-05/1.062, allocations: 272.1 kB / 0.6931 GB, free: 71.49 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002562/1.064, allocations: 2.246 MB / 0.6953 GB, free: 71.23 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000129/1.065, allocations: 46.36 kB / 0.6954 GB, free: 71.2 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009738/1.066, allocations: 1.303 MB / 0.6966 GB, free: 71.05 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003014/1.066, allocations: 331.8 kB / 0.697 GB, free: 70.89 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.222e-05/1.066, allocations: 23.09 kB / 0.697 GB, free: 70.89 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001105/1.066, allocations: 348.4 kB / 0.6973 GB, free: 70.58 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001201/1.067, allocations: 0.5269 MB / 0.6978 GB, free: 70.58 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001195/1.069, allocations: 0.7533 MB / 0.6986 GB, free: 70.34 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00124/1.07, allocations: 0.5742 MB / 0.6991 GB, free: 70.33 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.855e-06/1.07, allocations: 3.781 kB / 0.6991 GB, free: 70.33 MB / 442.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003881/1.074, allocations: 2.089 MB / 0.7012 GB, free: 69.82 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.727e-05/1.074, allocations: 14 kB / 0.7012 GB, free: 69.82 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001302/1.074, allocations: 115.6 kB / 0.7013 GB, free: 69.82 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005849/1.074, allocations: 265.1 kB / 0.7015 GB, free: 69.74 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000801/1.075, allocations: 231.7 kB / 0.7018 GB, free: 69.74 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005578/1.081, allocations: 13.34 MB / 0.7148 GB, free: 57.22 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001578/1.082, allocations: 124.1 kB / 0.7149 GB, free: 57.22 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001083/1.083, allocations: 58.5 kB / 0.715 GB, free: 57.22 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 () * Number of clocked 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.0009257/1.084, allocations: 426.9 kB / 0.7154 GB, free: 57.11 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003161/1.084, allocations: 371.6 kB / 0.7157 GB, free: 56.92 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004619/1.088, allocations: 2.367 MB / 0.718 GB, free: 56.54 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.305e-06/1.088, allocations: 7.312 kB / 0.718 GB, free: 56.54 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.154e-06/1.088, allocations: 9.75 kB / 0.7181 GB, free: 56.54 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.223e-06/1.089, allocations: 3.797 kB / 0.7181 GB, free: 56.54 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00172/1.09, allocations: 1.54 MB / 0.7196 GB, free: 56.29 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001127/1.09, allocations: 114.4 kB / 0.7197 GB, free: 56.29 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006769/1.091, allocations: 176.8 kB / 0.7198 GB, free: 56.29 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005096/1.092, allocations: 255.4 kB / 0.7201 GB, free: 56.21 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.203e-05/1.092, allocations: 47.67 kB / 0.7201 GB, free: 56.21 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005509/1.097, allocations: 13.32 MB / 0.7331 GB, free: 43.69 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/1.097, allocations: 3.953 kB / 0.7331 GB, free: 43.69 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00467/1.102, allocations: 2.718 MB / 0.7358 GB, free: 43.1 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009903/1.103, allocations: 498.8 kB / 0.7363 GB, free: 42.82 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003148/1.103, allocations: 23.94 kB / 0.7363 GB, free: 42.82 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009615/1.104, allocations: 120.5 kB / 0.7364 GB, free: 42.82 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003118/1.104, allocations: 147.3 kB / 0.7366 GB, free: 42.82 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.351e-05/1.105, allocations: 48 kB / 0.7366 GB, free: 42.82 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001954/1.107, allocations: 1.737 MB / 0.7383 GB, free: 42.64 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.1e-07/1.107, allocations: 0 / 0.7383 GB, free: 42.64 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001585/1.108, allocations: 0.7132 MB / 0.739 GB, free: 42.64 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) * Number of clocked states: 0 () * 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.005617/1.114, allocations: 4.089 MB / 0.743 GB, free: 41.53 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003617/1.117, allocations: 2.631 MB / 0.7456 GB, free: 40.29 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.409e-06/1.117, allocations: 0 / 0.7456 GB, free: 40.29 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00202/1.119, allocations: 2.013 MB / 0.7475 GB, free: 39.04 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002146/1.122, allocations: 0.575 MB / 0.7481 GB, free: 39 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02807/1.15, allocations: 21.9 MB / 0.7695 GB, free: 25.69 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009688/1.151, allocations: 1.719 MB / 0.7711 GB, free: 24.93 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001272/1.152, allocations: 345.5 kB / 0.7715 GB, free: 24.85 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008614/1.153, allocations: 1.141 MB / 0.7726 GB, free: 23.93 MB / 442.7 MB Notification: Performance of SimCode: time 6.332e-06/1.153, allocations: 0 / 0.7726 GB, free: 23.93 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09088/1.244, allocations: 62.24 MB / 0.8334 GB, free: 5.535 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002138/1.244, allocations: 197.8 kB / 0.8336 GB, free: 5.285 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.406/5.65, allocations: 4 kB / 0.8336 GB, free: 5.281 MB / 474.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)