Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_3_2_3_cpp_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.001606/0.001611, allocations: 186.2 kB / 16.4 MB, free: 5.746 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.964/1.964, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.00119/0.001189, allocations: 97.98 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000408/0.000408, allocations: 12 kB / 327.1 MB, free: 104 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3241/0.3245, allocations: 47.56 MB / 374.6 MB, free: 45.3 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.167/0.4916, allocations: 102.4 MB / 477 MB, free: 10.22 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003055/0.492, allocations: 83.95 kB / 477.1 MB, free: 10.14 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6586/1.151, allocations: 124.2 MB / 0.5872 GB, free: 26.16 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.445e-06/1.151, allocations: 0 / 0.5872 GB, free: 26.16 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.529e-05/1.151, allocations: 44 kB / 0.5872 GB, free: 26.11 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.008708/1.159, allocations: 3.333 MB / 0.5905 GB, free: 22.71 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.207e-05/1.16, allocations: 12.03 kB / 0.5905 GB, free: 22.7 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003503/1.16, allocations: 102.5 kB / 0.5906 GB, free: 22.59 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006587/1.161, allocations: 384.3 kB / 0.591 GB, free: 22.21 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005702/1.166, allocations: 2.275 MB / 0.5932 GB, free: 19.86 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.61e-05/1.166, allocations: 29 kB / 0.5932 GB, free: 19.84 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001928/1.167, allocations: 51.91 kB / 0.5933 GB, free: 19.79 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002436/1.169, allocations: 0.9118 MB / 0.5942 GB, free: 18.84 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.452e-05/1.169, allocations: 0 / 0.5942 GB, free: 18.84 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001159/1.169, allocations: 23.98 kB / 0.5942 GB, free: 18.82 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.937e-05/1.169, allocations: 19.98 kB / 0.5942 GB, free: 18.8 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002934/1.172, allocations: 0.91 MB / 0.5951 GB, free: 17.89 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008128/1.18, allocations: 3.045 MB / 0.5981 GB, free: 14.78 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002946/1.183, allocations: 0.8544 MB / 0.5989 GB, free: 13.92 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05412/1.238, allocations: 35.88 MB / 0.6339 GB, free: 4.898 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002159/1.24, allocations: 0.623 MB / 0.6345 GB, free: 4.262 MB / 410.7 MB Notification: Performance of pre-optimization done (n=96): time 4.769e-06/1.24, allocations: 0 / 0.6345 GB, free: 4.262 MB / 410.7 MB Notification: Performance of matching and sorting (n=99): time 0.02453/1.264, allocations: 6.078 MB / 0.6405 GB, free: 13.84 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001985/1.265, allocations: 274 kB / 0.6407 GB, free: 13.5 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005197/1.27, allocations: 2.26 MB / 0.6429 GB, free: 11.23 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002607/1.27, allocations: 45.69 kB / 0.643 GB, free: 11.18 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00153/1.272, allocations: 1.062 MB / 0.644 GB, free: 10.12 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006043/1.272, allocations: 327.3 kB / 0.6443 GB, free: 9.793 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001305/1.272, allocations: 16 kB / 0.6444 GB, free: 9.777 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001875/1.273, allocations: 358.8 kB / 0.6447 GB, free: 9.418 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002573/1.275, allocations: 0.5215 MB / 0.6452 GB, free: 8.895 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0029/1.278, allocations: 0.7513 MB / 0.6459 GB, free: 8.059 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002695/1.281, allocations: 0.573 MB / 0.6465 GB, free: 7.488 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.664e-06/1.281, allocations: 0 / 0.6465 GB, free: 7.488 MB / 426.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.007057/1.288, allocations: 1.8 MB / 0.6483 GB, free: 5.613 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.525e-05/1.288, allocations: 11.94 kB / 0.6483 GB, free: 5.602 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003149/1.288, allocations: 120 kB / 0.6484 GB, free: 5.484 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001233/1.29, allocations: 260.5 kB / 0.6486 GB, free: 5.199 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001843/1.292, allocations: 235.7 kB / 0.6489 GB, free: 4.969 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3055/1.597, allocations: 13.33 MB / 0.6619 GB, free: 89.95 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002707/1.6, allocations: 128 kB / 0.662 GB, free: 89.95 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003014/1.6, allocations: 57.62 kB / 0.6621 GB, free: 89.95 MB / 426.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.001633/1.602, allocations: 437 kB / 0.6625 GB, free: 89.83 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007572/1.603, allocations: 377.1 kB / 0.6628 GB, free: 89.83 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009517/1.612, allocations: 2.362 MB / 0.6651 GB, free: 89.47 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.72e-05/1.612, allocations: 8.719 kB / 0.6651 GB, free: 89.47 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.068e-05/1.612, allocations: 5.438 kB / 0.6652 GB, free: 89.47 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.681e-05/1.612, allocations: 6.891 kB / 0.6652 GB, free: 89.47 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003232/1.616, allocations: 1.552 MB / 0.6667 GB, free: 89.23 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002614/1.616, allocations: 113.9 kB / 0.6668 GB, free: 89.23 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001447/1.617, allocations: 171 kB / 0.6669 GB, free: 89.23 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001104/1.618, allocations: 261.6 kB / 0.6672 GB, free: 89.15 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002262/1.619, allocations: 43.47 kB / 0.6672 GB, free: 89.15 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009662/1.628, allocations: 13.33 MB / 0.6803 GB, free: 76.67 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.478e-06/1.628, allocations: 3.953 kB / 0.6803 GB, free: 76.66 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009564/1.638, allocations: 2.721 MB / 0.6829 GB, free: 76.09 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001539/1.64, allocations: 0.4926 MB / 0.6834 GB, free: 75.8 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008234/1.64, allocations: 20.72 kB / 0.6834 GB, free: 75.8 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002484/1.643, allocations: 117.7 kB / 0.6835 GB, free: 75.8 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000641/1.644, allocations: 147 kB / 0.6837 GB, free: 75.8 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001564/1.644, allocations: 48.34 kB / 0.6837 GB, free: 75.8 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003585/1.647, allocations: 1.747 MB / 0.6854 GB, free: 75.62 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.41e-07/1.647, allocations: 0 / 0.6854 GB, free: 75.62 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002957/1.65, allocations: 0.7154 MB / 0.6861 GB, free: 75.62 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) * 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.01201/1.662, allocations: 4.082 MB / 0.6901 GB, free: 74.52 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.007126/1.67, allocations: 2.645 MB / 0.6927 GB, free: 73.27 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.088e-05/1.67, allocations: 3.234 kB / 0.6927 GB, free: 73.27 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004336/1.674, allocations: 2.002 MB / 0.6946 GB, free: 72.03 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002961/1.677, allocations: 482 kB / 0.6951 GB, free: 72 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05704/1.734, allocations: 22.11 MB / 0.7167 GB, free: 59.26 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001538/1.736, allocations: 1.725 MB / 0.7184 GB, free: 58.49 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002414/1.738, allocations: 1.148 MB / 0.7195 GB, free: 58.48 MB / 426.7 MB Notification: Performance of SimCode: time 1.363e-06/1.738, allocations: 0 / 0.7195 GB, free: 58.48 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.559/6.297, allocations: 155.3 MB / 0.8711 GB, free: 117.7 MB / 458.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Nor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Nor_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_Nor_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_Nor.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Nor_res.mat does not exist to compare? outputFormat=mat