Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection.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.Analog.Examples.OvervoltageProtection,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OvervoltageProtection,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OvervoltageProtection",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.001696/0.001696, allocations: 188.5 kB / 16.4 MB, free: 5.625 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.275/2.275, allocations: 205.4 MB / 222.5 MB, free: 13.76 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.001127/0.001126, allocations: 86.92 kB / 270.9 MB, free: 13.3 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004344/0.0004343, allocations: 12 kB / 327.1 MB, free: 15 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09854/0.09902, allocations: 47.57 MB / 374.6 MB, free: 15.35 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.003784/0.1029, allocations: 2.143 MB / 376.8 MB, free: 13.19 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001778/0.1047, allocations: 0.6948 MB / 377.5 MB, free: 12.48 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000183/0.1049, allocations: 7.938 kB / 377.5 MB, free: 12.48 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 8.571e-05/0.105, allocations: 23.83 kB / 377.5 MB, free: 12.45 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002896/0.1053, allocations: 99.66 kB / 377.6 MB, free: 12.36 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003607/0.1057, allocations: 75.83 kB / 377.7 MB, free: 12.28 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.00044/0.1061, allocations: 235.5 kB / 377.9 MB, free: 12.05 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002161/0.1064, allocations: 61.16 kB / 378 MB, free: 12 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002633/0.1067, allocations: 119.6 kB / 378.1 MB, free: 11.88 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002665/0.1069, allocations: 143.4 kB / 378.2 MB, free: 11.74 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 5.549e-05/0.107, allocations: 16 kB / 378.2 MB, free: 11.72 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.762e-05/0.1071, allocations: 16 kB / 378.2 MB, free: 11.71 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 7.362e-05/0.1072, allocations: 51.81 kB / 378.3 MB, free: 11.66 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 8.766e-05/0.1073, allocations: 73.58 kB / 378.4 MB, free: 11.58 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003648/0.1076, allocations: 247.5 kB / 378.6 MB, free: 11.34 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.625e-06/0.1077, allocations: 0 / 378.6 MB, free: 11.34 MB / 282.7 MB Notification: Performance of FrontEnd: time 4.148e-06/0.1077, allocations: 0 / 378.6 MB, free: 11.34 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.953e-06/0.1077, allocations: 3.938 kB / 378.6 MB, free: 11.33 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.002188/0.1099, allocations: 0.608 MB / 379.2 MB, free: 10.67 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.966e-05/0.11, allocations: 8.031 kB / 379.2 MB, free: 10.66 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000102/0.1101, allocations: 58.53 kB / 379.3 MB, free: 10.6 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.784e-05/0.1102, allocations: 31.66 kB / 379.3 MB, free: 10.57 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004168/0.1106, allocations: 247.5 kB / 379.6 MB, free: 10.28 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.65e-05/0.1106, allocations: 16.39 kB / 379.6 MB, free: 10.27 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.674e-05/0.1107, allocations: 20 kB / 379.6 MB, free: 10.25 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001078/0.1118, allocations: 306.6 kB / 379.9 MB, free: 9.93 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.447e-05/0.1118, allocations: 0 / 379.9 MB, free: 9.93 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.162e-05/0.1119, allocations: 8 kB / 379.9 MB, free: 9.922 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.086e-05/0.1119, allocations: 8 kB / 379.9 MB, free: 9.914 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001399/0.1133, allocations: 285.5 kB / 380.2 MB, free: 9.637 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002702/0.1161, allocations: 1.077 MB / 381.3 MB, free: 8.48 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003486/0.1196, allocations: 498.2 kB / 381.8 MB, free: 7.984 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.796e-05/0.1197, allocations: 0 / 381.8 MB, free: 7.984 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.606e-05/0.1197, allocations: 38.56 kB / 381.8 MB, free: 7.938 MB / 282.7 MB Notification: Performance of pre-optimization done (n=14): time 1.964e-06/0.1197, allocations: 0 / 381.8 MB, free: 7.938 MB / 282.7 MB Notification: Performance of matching and sorting (n=14): time 0.009182/0.1289, allocations: 1.124 MB / 382.9 MB, free: 6.785 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.357e-05/0.129, allocations: 55.41 kB / 383 MB, free: 6.719 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003586/0.1294, allocations: 217.5 kB / 383.2 MB, free: 6.492 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.778e-05/0.1295, allocations: 29.7 kB / 383.2 MB, free: 6.457 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000152/0.1296, allocations: 222.5 kB / 383.4 MB, free: 6.238 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.122e-05/0.1297, allocations: 43.27 kB / 383.5 MB, free: 6.195 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.256e-05/0.1297, allocations: 4 kB / 383.5 MB, free: 6.191 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001412/0.1299, allocations: 326.8 kB / 383.8 MB, free: 5.863 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006145/0.1305, allocations: 111.9 kB / 383.9 MB, free: 5.754 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006301/0.1312, allocations: 133.6 kB / 384 MB, free: 5.617 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006236/0.1318, allocations: 115.9 kB / 384.1 MB, free: 5.504 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.1318, allocations: 0 / 384.1 MB, free: 5.504 MB / 282.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.005453/0.1373, allocations: 0.6756 MB / 384.8 MB, free: 4.82 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.942e-05/0.1374, allocations: 4 kB / 384.8 MB, free: 4.816 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.808e-06/0.1374, allocations: 0 / 384.8 MB, free: 4.816 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001261/0.1387, allocations: 236.6 kB / 385.1 MB, free: 4.582 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000322/0.139, allocations: 39.97 kB / 385.1 MB, free: 4.543 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01228/0.1513, allocations: 2.685 MB / 387.8 MB, free: 1.723 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000507/0.1518, allocations: 43.88 kB / 387.8 MB, free: 1.68 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.397e-05/0.1519, allocations: 8 kB / 387.8 MB, free: 1.672 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0002155/0.1521, allocations: 129.8 kB / 388 MB, free: 1.535 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.109e-05/0.1522, allocations: 23.72 kB / 388 MB, free: 1.512 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001068/0.1523, allocations: 29.41 kB / 388 MB, free: 1.48 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.1523, allocations: 0 / 388 MB, free: 1.48 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.1524, allocations: 4 kB / 388 MB, free: 1.477 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.1524, allocations: 96 / 388 MB, free: 1.477 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005834/0.153, allocations: 329.4 kB / 388.3 MB, free: 1.105 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.877e-06/0.153, allocations: 0 / 388.3 MB, free: 1.105 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002956/0.1533, allocations: 31.97 kB / 388.4 MB, free: 1.074 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001168/0.1545, allocations: 236.7 kB / 388.6 MB, free: 0.8398 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.071e-05/0.1545, allocations: 3.953 kB / 388.6 MB, free: 0.8359 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2781/0.4326, allocations: 2.666 MB / 391.3 MB, free: 19.79 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.262e-06/0.4327, allocations: 4.938 kB / 391.3 MB, free: 19.79 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006791/0.4395, allocations: 0.9104 MB / 392.2 MB, free: 19.65 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.924e-05/0.4396, allocations: 97.06 kB / 392.3 MB, free: 19.56 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.245e-05/0.4397, allocations: 4.531 kB / 392.3 MB, free: 19.56 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005208/0.4402, allocations: 40 kB / 392.3 MB, free: 19.56 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.175e-05/0.4403, allocations: 14.34 kB / 392.3 MB, free: 19.55 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.377e-05/0.4404, allocations: 7.531 kB / 392.3 MB, free: 19.55 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002214/0.4406, allocations: 155.4 kB / 392.5 MB, free: 19.48 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.41e-07/0.4406, allocations: 0 / 392.5 MB, free: 19.48 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006655/0.4413, allocations: 78.28 kB / 392.6 MB, free: 19.48 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (CL.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.006503/0.4478, allocations: 1.449 MB / 394 MB, free: 18.82 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.002732/0.4506, allocations: 477.8 kB / 394.5 MB, free: 18.7 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 6.853e-06/0.4507, allocations: 0 / 394.5 MB, free: 18.7 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002026/0.4527, allocations: 350.7 kB / 394.8 MB, free: 18.58 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000459/0.4532, allocations: 32.27 kB / 394.9 MB, free: 18.57 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009182/0.4624, allocations: 2.176 MB / 397 MB, free: 17.5 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002503/0.4627, allocations: 0.7518 MB / 397.8 MB, free: 16.8 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001656/0.4629, allocations: 67.36 kB / 397.9 MB, free: 16.75 MB / 282.7 MB Notification: Performance of SimCode: time 9.72e-07/0.4629, allocations: 0 / 397.9 MB, free: 16.75 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.706/3.169, allocations: 5.005 MB / 402.9 MB, free: 15.59 MB / 282.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OvervoltageProtection_fmu --startTime=0 --stopTime=0.4 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OvervoltageProtection.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat does not exist to compare? outputFormat=mat