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.001044/0.001045, allocations: 172.2 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.528/1.528, allocations: 205.2 MB / 219.8 MB, free: 14.27 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008667/0.0008667, allocations: 94.69 kB / 268 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.261e-05/3.275e-05, allocations: 8 kB / 322.5 MB, free: 17.27 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09885/0.0989, allocations: 47.56 MB / 370.1 MB, free: 1.641 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3586/0.4575, allocations: 102.3 MB / 472.4 MB, free: 7.309 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002081/0.4578, allocations: 68.53 kB / 472.5 MB, free: 7.273 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4689/0.9267, allocations: 124.1 MB / 0.5826 GB, free: 91.11 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.9268, allocations: 0 / 0.5826 GB, free: 91.11 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.972e-05/0.9269, allocations: 43.16 kB / 0.5826 GB, free: 91.11 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.004139/0.931, allocations: 2.642 MB / 0.5852 GB, free: 89.51 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.696e-05/0.9311, allocations: 10.94 kB / 0.5852 GB, free: 89.5 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001197/0.9312, allocations: 101.3 kB / 0.5853 GB, free: 89.43 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003566/0.9316, allocations: 389.1 kB / 0.5857 GB, free: 89.23 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00333/0.9349, allocations: 2.252 MB / 0.5879 GB, free: 88.2 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.23e-05/0.9349, allocations: 38.78 kB / 0.5879 GB, free: 88.18 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001296/0.9351, allocations: 52.72 kB / 0.588 GB, free: 88.16 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001119/0.9362, allocations: 0.7832 MB / 0.5887 GB, free: 87.79 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.511e-05/0.9362, allocations: 0 / 0.5887 GB, free: 87.79 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.369e-05/0.9363, allocations: 29.58 kB / 0.5888 GB, free: 87.77 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.583e-05/0.9363, allocations: 21.91 kB / 0.5888 GB, free: 87.77 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008915/0.9372, allocations: 0.7079 MB / 0.5895 GB, free: 87.56 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00488/0.9421, allocations: 3.036 MB / 0.5924 GB, free: 86.12 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008765/0.943, allocations: 0.6486 MB / 0.5931 GB, free: 85.79 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009079/0.944, allocations: 0.8881 MB / 0.5939 GB, free: 85.46 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0294/0.9734, allocations: 35.98 MB / 0.6291 GB, free: 47.06 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009185/0.9743, allocations: 0.5175 MB / 0.6296 GB, free: 46.53 MB / 410.7 MB Notification: Performance of pre-optimization done (n=96): time 4.348e-06/0.9744, allocations: 3.938 kB / 0.6296 GB, free: 46.53 MB / 410.7 MB Notification: Performance of matching and sorting (n=99): time 0.006718/0.9811, allocations: 3.476 MB / 0.633 GB, free: 42.92 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.251e-05/0.9812, allocations: 280.5 kB / 0.6333 GB, free: 42.59 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004637/0.9859, allocations: 2.222 MB / 0.6354 GB, free: 40.35 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002069/0.9861, allocations: 45.7 kB / 0.6355 GB, free: 40.3 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001916/0.988, allocations: 1.299 MB / 0.6367 GB, free: 38.99 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005167/0.9886, allocations: 335.2 kB / 0.6371 GB, free: 38.67 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001361/0.9887, allocations: 20 kB / 0.6371 GB, free: 38.65 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000139/0.9889, allocations: 345.9 kB / 0.6374 GB, free: 38.3 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009016/0.9898, allocations: 330.3 kB / 0.6377 GB, free: 37.98 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001082/0.9909, allocations: 0.5522 MB / 0.6383 GB, free: 37.34 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001027/0.9919, allocations: 383.5 kB / 0.6386 GB, free: 36.98 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.377e-06/0.992, allocations: 3.938 kB / 0.6386 GB, free: 36.97 MB / 410.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004379/0.9963, allocations: 1.678 MB / 0.6403 GB, free: 35.21 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.228e-05/0.9964, allocations: 15.89 kB / 0.6403 GB, free: 35.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002058/0.9966, allocations: 123.9 kB / 0.6404 GB, free: 35.07 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009686/0.9976, allocations: 264.9 kB / 0.6407 GB, free: 34.79 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001367/0.999, allocations: 223.7 kB / 0.6409 GB, free: 34.57 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00935/1.008, allocations: 13.25 MB / 0.6538 GB, free: 19.99 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003215/1.012, allocations: 132 kB / 0.6539 GB, free: 19.86 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002691/1.012, allocations: 59.98 kB / 0.654 GB, free: 19.8 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.0003506/1.012, allocations: 172.6 kB / 0.6541 GB, free: 19.63 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007402/1.013, allocations: 371.5 kB / 0.6545 GB, free: 19.26 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006564/1.02, allocations: 1.961 MB / 0.6564 GB, free: 17.23 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-05/1.02, allocations: 12 kB / 0.6564 GB, free: 17.21 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.297e-05/1.02, allocations: 4 kB / 0.6564 GB, free: 17.21 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.304e-05/1.02, allocations: 3.984 kB / 0.6564 GB, free: 17.21 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003705/1.023, allocations: 1.559 MB / 0.658 GB, free: 15.62 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001751/1.024, allocations: 112 kB / 0.6581 GB, free: 15.51 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009801/1.025, allocations: 163.8 kB / 0.6582 GB, free: 15.35 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007457/1.025, allocations: 264.3 kB / 0.6585 GB, free: 15.06 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001591/1.026, allocations: 43.98 kB / 0.6585 GB, free: 15.02 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008683/1.034, allocations: 13.23 MB / 0.6714 GB, free: 468 kB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/1.034, allocations: 0 / 0.6714 GB, free: 468 kB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006319/1.041, allocations: 2.107 MB / 0.6735 GB, free: 14.26 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002241/1.043, allocations: 0.4965 MB / 0.674 GB, free: 13.74 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001134/1.044, allocations: 24 kB / 0.674 GB, free: 13.72 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002512/1.047, allocations: 119.8 kB / 0.6741 GB, free: 13.6 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005329/1.047, allocations: 144.5 kB / 0.6743 GB, free: 13.46 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001801/1.047, allocations: 51.97 kB / 0.6743 GB, free: 13.41 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005373/1.053, allocations: 1.718 MB / 0.676 GB, free: 11.68 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.6e-07/1.053, allocations: 0 / 0.676 GB, free: 11.68 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004306/1.057, allocations: 0.7222 MB / 0.6767 GB, free: 10.96 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.00882/1.066, allocations: 3.465 MB / 0.6801 GB, free: 7.566 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004302/1.07, allocations: 2.211 MB / 0.6822 GB, free: 5.203 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.101e-06/1.07, allocations: 0 / 0.6822 GB, free: 5.203 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002811/1.073, allocations: 1.809 MB / 0.684 GB, free: 3.242 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003549/1.077, allocations: 477.3 kB / 0.6845 GB, free: 2.77 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2446/1.321, allocations: 4.045 MB / 0.6884 GB, free: 101.1 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001541/1.323, allocations: 1.721 MB / 0.6901 GB, free: 100.4 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001593/1.325, allocations: 342.9 kB / 0.6904 GB, free: 100.3 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00139/1.326, allocations: 1.148 MB / 0.6915 GB, free: 100.3 MB / 426.7 MB Notification: Performance of SimCode: time 1.333e-06/1.326, allocations: 0 / 0.6915 GB, free: 100.3 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1055/1.432, allocations: 62.36 MB / 0.7524 GB, free: 75.92 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001429/1.432, allocations: 156.1 kB / 0.7526 GB, free: 75.7 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.473/5.905, allocations: 0 / 0.7526 GB, free: 75.7 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)