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.002195/0.002195, allocations: 178.1 kB / 8.359 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.065/2.065, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001118/0.001118, allocations: 91.38 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.856e-05/2.856e-05, allocations: 0 / 314.9 MB, free: 9.062 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3315/0.3315, allocations: 47.55 MB / 362.4 MB, free: 45.73 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1633/0.4949, allocations: 101.6 MB / 464 MB, free: 0.5547 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002924/0.4952, allocations: 75.95 kB / 464.1 MB, free: 492 kB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.6683/1.164, allocations: 118.9 MB / 0.5694 GB, free: 72.14 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.615e-06/1.164, allocations: 0 / 0.5694 GB, free: 72.14 MB / 395.1 MB Notification: Performance of Transformations before backend: time 7.54e-05/1.164, allocations: 44 kB / 0.5694 GB, free: 72.09 MB / 395.1 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.007079/1.171, allocations: 2.65 MB / 0.572 GB, free: 69.39 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 9.951e-05/1.171, allocations: 12.03 kB / 0.572 GB, free: 69.38 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009174/1.172, allocations: 380.3 kB / 0.5724 GB, free: 69 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005986/1.178, allocations: 2.254 MB / 0.5746 GB, free: 66.76 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.93e-05/1.178, allocations: 15.98 kB / 0.5746 GB, free: 66.75 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002186/1.178, allocations: 47.84 kB / 0.5746 GB, free: 66.7 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001682/1.18, allocations: 0.6782 MB / 0.5753 GB, free: 66.02 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001591/1.181, allocations: 0.7284 MB / 0.576 GB, free: 65.26 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.395e-05/1.181, allocations: 0 / 0.576 GB, free: 65.26 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001081/1.182, allocations: 5.594 kB / 0.576 GB, free: 65.25 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.038e-05/1.182, allocations: 19.98 kB / 0.576 GB, free: 65.23 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009352/1.191, allocations: 2.939 MB / 0.5789 GB, free: 62.27 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001596/1.193, allocations: 0.6214 MB / 0.5795 GB, free: 61.65 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00157/1.194, allocations: 0.8633 MB / 0.5803 GB, free: 60.79 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04892/1.243, allocations: 35.95 MB / 0.6155 GB, free: 19.71 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001081/1.244, allocations: 0.4925 MB / 0.6159 GB, free: 19.21 MB / 395.1 MB Notification: Performance of pre-optimization done (n=96): time 4.909e-06/1.244, allocations: 3.375 kB / 0.6159 GB, free: 19.21 MB / 395.1 MB Notification: Performance of matching and sorting (n=99): time 0.01046/1.255, allocations: 3.36 MB / 0.6192 GB, free: 15.71 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001108/1.255, allocations: 285.7 kB / 0.6195 GB, free: 15.38 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004572/1.26, allocations: 2.038 MB / 0.6215 GB, free: 13.33 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000269/1.26, allocations: 33.7 kB / 0.6215 GB, free: 13.29 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00135/1.261, allocations: 1.051 MB / 0.6225 GB, free: 12.23 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005255/1.262, allocations: 327.2 kB / 0.6229 GB, free: 11.91 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.225e-05/1.262, allocations: 0 / 0.6229 GB, free: 11.91 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 9.428e-05/1.262, allocations: 350.8 kB / 0.6232 GB, free: 11.56 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000821/1.263, allocations: 318.6 kB / 0.6235 GB, free: 11.25 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009212/1.264, allocations: 0.5196 MB / 0.624 GB, free: 10.64 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009811/1.265, allocations: 370 kB / 0.6244 GB, free: 10.28 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.304e-06/1.265, allocations: 4 kB / 0.6244 GB, free: 10.28 MB / 395.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003326/1.268, allocations: 1.301 MB / 0.6256 GB, free: 8.906 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.226e-05/1.268, allocations: 8 kB / 0.6256 GB, free: 8.898 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002897/1.269, allocations: 120 kB / 0.6257 GB, free: 8.781 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001048/1.27, allocations: 248.6 kB / 0.626 GB, free: 8.508 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001776/1.271, allocations: 235.7 kB / 0.6262 GB, free: 8.277 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01094/1.282, allocations: 12.79 MB / 0.6387 GB, free: 10.34 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002823/1.285, allocations: 104 kB / 0.6388 GB, free: 10.24 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003979/1.286, allocations: 60 kB / 0.6389 GB, free: 10.18 MB / 411.1 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.0004025/1.286, allocations: 140.7 kB / 0.639 GB, free: 10.04 MB / 411.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004589/1.291, allocations: 1.519 MB / 0.6405 GB, free: 8.441 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001057/1.292, allocations: 367.6 kB / 0.6408 GB, free: 8.078 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007479/1.299, allocations: 1.911 MB / 0.6427 GB, free: 6.086 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.536e-05/1.299, allocations: 8 kB / 0.6427 GB, free: 6.078 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.674e-05/1.299, allocations: 4 kB / 0.6427 GB, free: 6.074 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.021e-05/1.299, allocations: 3.984 kB / 0.6427 GB, free: 6.07 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004015/1.304, allocations: 1.439 MB / 0.6441 GB, free: 4.594 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0003421/1.304, allocations: 112 kB / 0.6442 GB, free: 4.484 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001578/1.305, allocations: 179.8 kB / 0.6444 GB, free: 4.309 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00119/1.307, allocations: 248.3 kB / 0.6446 GB, free: 4.035 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003401/1.307, allocations: 43.97 kB / 0.6447 GB, free: 3.992 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01354/1.321, allocations: 12.77 MB / 0.6571 GB, free: 6.07 MB / 427.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.496e-06/1.321, allocations: 3.984 kB / 0.6571 GB, free: 6.066 MB / 427.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005738/1.326, allocations: 2.05 MB / 0.6591 GB, free: 3.926 MB / 427.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001858/1.328, allocations: 0.5003 MB / 0.6596 GB, free: 3.402 MB / 427.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006621/1.329, allocations: 8 kB / 0.6596 GB, free: 3.395 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002101/1.331, allocations: 103.9 kB / 0.6597 GB, free: 3.293 MB / 427.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000553/1.332, allocations: 144.5 kB / 0.6599 GB, free: 3.152 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001808/1.332, allocations: 55.97 kB / 0.6599 GB, free: 3.098 MB / 427.1 MB Notification: Performance of sorting global known variables: time 0.003967/1.336, allocations: 1.525 MB / 0.6614 GB, free: 1.566 MB / 427.1 MB Notification: Performance of sort global known variables: time 1.513e-06/1.336, allocations: 0 / 0.6614 GB, free: 1.566 MB / 427.1 MB Notification: Performance of remove unused functions: time 0.003256/1.339, allocations: 0.6793 MB / 0.6621 GB, free: 0.8867 MB / 427.1 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.2993/1.639, allocations: 3.498 MB / 0.6655 GB, free: 105.8 MB / 427.1 MB Notification: Performance of simCode: created initialization part: time 0.003932/1.643, allocations: 2.109 MB / 0.6676 GB, free: 104.7 MB / 427.1 MB Notification: Performance of simCode: created event and clocks part: time 1.12e-05/1.643, allocations: 4.422 kB / 0.6676 GB, free: 104.7 MB / 427.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002626/1.645, allocations: 1.719 MB / 0.6692 GB, free: 103.5 MB / 427.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003202/1.648, allocations: 467.1 kB / 0.6697 GB, free: 103.5 MB / 427.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01231/1.661, allocations: 4.035 MB / 0.6736 GB, free: 102.4 MB / 427.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001587/1.662, allocations: 1.723 MB / 0.6753 GB, free: 101.7 MB / 427.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002162/1.665, allocations: 1.151 MB / 0.6764 GB, free: 101.7 MB / 427.1 MB Notification: Performance of SimCode: time 1.453e-06/1.665, allocations: 0 / 0.6764 GB, free: 101.7 MB / 427.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.747/6.412, allocations: 154.4 MB / 0.8272 GB, free: 121.3 MB / 443.1 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