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.00244/0.00244, allocations: 181.3 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.113/2.113, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001088/0.001088, allocations: 86.64 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.142e-05/3.16e-05, allocations: 4 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09775/0.09782, allocations: 47.58 MB / 369.2 MB, free: 2.109 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4617/0.5596, allocations: 102.3 MB / 471.5 MB, free: 7.156 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002677/0.5599, allocations: 70.47 kB / 471.5 MB, free: 7.121 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6992/1.259, allocations: 124.1 MB / 0.5817 GB, free: 90.92 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.204e-06/1.259, allocations: 0 / 0.5817 GB, free: 90.92 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.868e-05/1.259, allocations: 43.5 kB / 0.5817 GB, free: 90.92 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.006991/1.266, allocations: 2.642 MB / 0.5843 GB, free: 89.31 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.204e-05/1.266, allocations: 11.41 kB / 0.5843 GB, free: 89.31 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003306/1.267, allocations: 98.64 kB / 0.5844 GB, free: 89.24 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008026/1.268, allocations: 393.8 kB / 0.5848 GB, free: 89.04 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006338/1.274, allocations: 2.253 MB / 0.587 GB, free: 88 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.114e-05/1.274, allocations: 33.09 kB / 0.587 GB, free: 87.98 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002683/1.274, allocations: 54.19 kB / 0.5871 GB, free: 87.96 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001849/1.276, allocations: 0.7951 MB / 0.5878 GB, free: 87.59 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.61e-05/1.276, allocations: 0 / 0.5878 GB, free: 87.59 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001287/1.276, allocations: 18.31 kB / 0.5879 GB, free: 87.58 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.103e-05/1.276, allocations: 17.3 kB / 0.5879 GB, free: 87.58 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001777/1.278, allocations: 0.7056 MB / 0.5886 GB, free: 87.37 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00907/1.287, allocations: 3.039 MB / 0.5915 GB, free: 85.93 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001712/1.289, allocations: 0.6535 MB / 0.5922 GB, free: 85.6 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001814/1.291, allocations: 0.8853 MB / 0.593 GB, free: 85.26 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04835/1.339, allocations: 35.96 MB / 0.6282 GB, free: 47.29 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001222/1.341, allocations: 0.5175 MB / 0.6287 GB, free: 46.75 MB / 410.7 MB Notification: Performance of pre-optimization done (n=96): time 6.392e-06/1.341, allocations: 0 / 0.6287 GB, free: 46.75 MB / 410.7 MB Notification: Performance of matching and sorting (n=99): time 0.01074/1.351, allocations: 3.48 MB / 0.6321 GB, free: 43.14 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001058/1.352, allocations: 277.2 kB / 0.6323 GB, free: 42.81 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004798/1.356, allocations: 2.226 MB / 0.6345 GB, free: 40.57 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000267/1.357, allocations: 45.7 kB / 0.6345 GB, free: 40.52 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001379/1.358, allocations: 1.062 MB / 0.6356 GB, free: 39.45 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006009/1.359, allocations: 337 kB / 0.6359 GB, free: 39.13 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001026/1.359, allocations: 16 kB / 0.6359 GB, free: 39.11 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001117/1.359, allocations: 354.8 kB / 0.6363 GB, free: 38.76 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00091/1.36, allocations: 330.2 kB / 0.6366 GB, free: 38.44 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001051/1.361, allocations: 0.5523 MB / 0.6371 GB, free: 37.8 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001044/1.362, allocations: 387.9 kB / 0.6375 GB, free: 37.43 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.396e-06/1.362, allocations: 4 kB / 0.6375 GB, free: 37.42 MB / 410.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003422/1.366, allocations: 1.377 MB / 0.6388 GB, free: 35.96 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.03e-05/1.366, allocations: 11.95 kB / 0.6388 GB, free: 35.95 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002862/1.366, allocations: 128 kB / 0.639 GB, free: 35.83 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001079/1.367, allocations: 260.5 kB / 0.6392 GB, free: 35.54 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001738/1.369, allocations: 231.7 kB / 0.6394 GB, free: 35.32 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009409/1.378, allocations: 13.25 MB / 0.6524 GB, free: 20.74 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002716/1.381, allocations: 120 kB / 0.6525 GB, free: 20.62 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000301/1.381, allocations: 64 kB / 0.6525 GB, free: 20.56 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.0003525/1.382, allocations: 168.6 kB / 0.6527 GB, free: 20.39 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007947/1.382, allocations: 379.5 kB / 0.6531 GB, free: 20.01 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006554/1.389, allocations: 1.956 MB / 0.655 GB, free: 17.98 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.808e-05/1.389, allocations: 8 kB / 0.655 GB, free: 17.97 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.104e-05/1.389, allocations: 7.984 kB / 0.655 GB, free: 17.96 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.473e-05/1.389, allocations: 3.984 kB / 0.655 GB, free: 17.96 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003353/1.393, allocations: 1.547 MB / 0.6565 GB, free: 16.38 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002696/1.393, allocations: 116 kB / 0.6566 GB, free: 16.27 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001436/1.394, allocations: 171.8 kB / 0.6568 GB, free: 16.1 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001079/1.395, allocations: 260.3 kB / 0.657 GB, free: 15.82 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002348/1.396, allocations: 43.98 kB / 0.6571 GB, free: 15.77 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009666/1.405, allocations: 13.23 MB / 0.67 GB, free: 1.211 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/1.405, allocations: 3.984 kB / 0.67 GB, free: 1.207 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005618/1.411, allocations: 2.116 MB / 0.6721 GB, free: 15 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001915/1.413, allocations: 0.4965 MB / 0.6726 GB, free: 14.48 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007658/1.414, allocations: 20 kB / 0.6726 GB, free: 14.46 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00247/1.416, allocations: 115.9 kB / 0.6727 GB, free: 14.35 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006801/1.417, allocations: 144.6 kB / 0.6728 GB, free: 14.21 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001881/1.417, allocations: 51.98 kB / 0.6729 GB, free: 14.16 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.004521/1.422, allocations: 1.714 MB / 0.6745 GB, free: 12.43 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.072e-06/1.422, allocations: 0 / 0.6745 GB, free: 12.43 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003319/1.425, allocations: 0.7106 MB / 0.6752 GB, free: 11.72 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.008584/1.434, allocations: 3.472 MB / 0.6786 GB, free: 8.324 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004851/1.439, allocations: 2.218 MB / 0.6808 GB, free: 5.953 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.014e-05/1.439, allocations: 3.859 kB / 0.6808 GB, free: 5.949 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003303/1.442, allocations: 1.799 MB / 0.6826 GB, free: 3.996 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003286/1.445, allocations: 475 kB / 0.683 GB, free: 3.531 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2968/1.742, allocations: 4.112 MB / 0.687 GB, free: 100.9 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002228/1.744, allocations: 1.725 MB / 0.6887 GB, free: 100.2 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002397/1.747, allocations: 1.152 MB / 0.6898 GB, free: 100.2 MB / 426.7 MB Notification: Performance of SimCode: time 1.603e-06/1.747, allocations: 0 / 0.6898 GB, free: 100.2 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.321/6.068, allocations: 154.5 MB / 0.8407 GB, free: 1.133 MB / 442.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