Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OvervoltageProtection,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OvervoltageProtection,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001059/0.001059, allocations: 86.2 kB / 16.31 MB, free: 6.457 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001282/0.001282, allocations: 183.4 kB / 17.21 MB, free: 6.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.508/1.508, allocations: 223.2 MB / 241.2 MB, free: 5.316 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002952/0.0002954, allocations: 11.16 kB / 300.9 MB, free: 5.594 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1136/0.1139, allocations: 50.43 MB / 351.3 MB, free: 11.42 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.002797/0.1168, allocations: 2.284 MB / 353.6 MB, free: 9.125 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001083/0.1179, allocations: 0.6431 MB / 354.3 MB, free: 8.477 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001126/0.118, allocations: 4 kB / 354.3 MB, free: 8.473 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001177/0.1181, allocations: 27.77 kB / 354.3 MB, free: 8.445 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001262/0.1183, allocations: 75.39 kB / 354.4 MB, free: 8.371 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002663/0.1185, allocations: 63.91 kB / 354.4 MB, free: 8.309 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000313/0.1189, allocations: 322.6 kB / 354.7 MB, free: 7.992 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001697/0.119, allocations: 77.73 kB / 354.8 MB, free: 7.914 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001737/0.1192, allocations: 115.5 kB / 354.9 MB, free: 7.801 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001679/0.1194, allocations: 139.5 kB / 355.1 MB, free: 7.664 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.806e-05/0.1194, allocations: 16 kB / 355.1 MB, free: 7.648 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.993e-05/0.1195, allocations: 16 kB / 355.1 MB, free: 7.633 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.164e-05/0.1195, allocations: 55.8 kB / 355.2 MB, free: 7.578 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.242e-05/0.1196, allocations: 69.58 kB / 355.2 MB, free: 7.504 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002264/0.1198, allocations: 239.3 kB / 355.5 MB, free: 7.27 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/0.1199, allocations: 0 / 355.5 MB, free: 7.27 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1199, allocations: 7.938 kB / 355.5 MB, free: 7.262 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.34e-06/0.1199, allocations: 4 kB / 355.5 MB, free: 7.258 MB / 286.1 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.001318/0.1212, allocations: 0.608 MB / 356.1 MB, free: 6.602 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.223e-05/0.1212, allocations: 12.03 kB / 356.1 MB, free: 6.59 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.879e-05/0.1213, allocations: 50.55 kB / 356.1 MB, free: 6.531 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.858e-05/0.1214, allocations: 31.67 kB / 356.2 MB, free: 6.5 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002892/0.1217, allocations: 255.5 kB / 356.4 MB, free: 6.207 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.876e-05/0.1217, allocations: 16.44 kB / 356.4 MB, free: 6.191 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.128e-05/0.1218, allocations: 19.98 kB / 356.5 MB, free: 6.172 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006467/0.1224, allocations: 310.6 kB / 356.8 MB, free: 5.855 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.566e-06/0.1224, allocations: 3.938 kB / 356.8 MB, free: 5.852 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.662e-05/0.1225, allocations: 8 kB / 356.8 MB, free: 5.844 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.768e-06/0.1225, allocations: 11.95 kB / 356.8 MB, free: 5.832 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000745/0.1233, allocations: 285.5 kB / 357.1 MB, free: 5.551 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001663/0.1249, allocations: 1.085 MB / 358.1 MB, free: 4.383 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001796/0.1267, allocations: 486.3 kB / 358.6 MB, free: 3.898 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003722/0.1271, allocations: 152.7 kB / 358.8 MB, free: 3.746 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.641e-05/0.1272, allocations: 4 kB / 358.8 MB, free: 3.742 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.83e-05/0.1272, allocations: 38.56 kB / 358.8 MB, free: 3.695 MB / 286.1 MB Notification: Performance of pre-optimization done (n=14): time 1.863e-06/0.1272, allocations: 0 / 358.8 MB, free: 3.695 MB / 286.1 MB Notification: Performance of matching and sorting (n=14): time 0.004641/0.1318, allocations: 1.123 MB / 359.9 MB, free: 2.547 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.251e-05/0.1319, allocations: 55.34 kB / 360 MB, free: 2.48 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002334/0.1321, allocations: 216.2 kB / 360.2 MB, free: 2.254 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.839e-05/0.1322, allocations: 25.7 kB / 360.2 MB, free: 2.223 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001293/0.1323, allocations: 160.1 kB / 360.4 MB, free: 2.062 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.386e-05/0.1324, allocations: 51.3 kB / 360.4 MB, free: 2.012 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.321e-05/0.1324, allocations: 0 / 360.4 MB, free: 2.012 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001648/0.1326, allocations: 330.8 kB / 360.8 MB, free: 1.68 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003331/0.1329, allocations: 115.9 kB / 360.9 MB, free: 1.566 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003273/0.1332, allocations: 139.7 kB / 361 MB, free: 1.426 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003289/0.1336, allocations: 119.9 kB / 361.1 MB, free: 1.309 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.1336, allocations: 0 / 361.1 MB, free: 1.309 MB / 286.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002632/0.1362, allocations: 0.6953 MB / 361.8 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.961e-05/0.1363, allocations: 8 kB / 361.8 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.022e-06/0.1363, allocations: 0 / 361.8 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006835/0.137, allocations: 232.7 kB / 362.1 MB, free: 376 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001667/0.1371, allocations: 39.91 kB / 362.1 MB, free: 336 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006174/0.1433, allocations: 2.607 MB / 364.7 MB, free: 13.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003027/0.1436, allocations: 43.89 kB / 364.7 MB, free: 13.55 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.411e-05/0.1437, allocations: 11.98 kB / 364.8 MB, free: 13.54 MB / 302.1 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.0001721/0.1439, allocations: 129.8 kB / 364.9 MB, free: 13.4 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.056e-05/0.1439, allocations: 15.81 kB / 364.9 MB, free: 13.38 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.067e-05/0.144, allocations: 29.52 kB / 364.9 MB, free: 13.35 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.144, allocations: 0 / 364.9 MB, free: 13.35 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.144, allocations: 4 kB / 364.9 MB, free: 13.35 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.144, allocations: 3.938 kB / 364.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003698/0.1444, allocations: 329.3 kB / 365.3 MB, free: 12.97 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-06/0.1444, allocations: 0 / 365.3 MB, free: 12.97 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001527/0.1445, allocations: 31.92 kB / 365.3 MB, free: 12.94 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006106/0.1452, allocations: 232.7 kB / 365.5 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.999e-05/0.1452, allocations: 3.984 kB / 365.5 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005813/0.151, allocations: 2.607 MB / 368.1 MB, free: 9.965 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.151, allocations: 0 / 368.1 MB, free: 9.965 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00303/0.1541, allocations: 0.906 MB / 369 MB, free: 9.039 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.946e-05/0.1542, allocations: 108.8 kB / 369.1 MB, free: 8.914 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.164e-05/0.1542, allocations: 0 / 369.1 MB, free: 8.914 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002755/0.1545, allocations: 39.97 kB / 369.2 MB, free: 8.875 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.729e-05/0.1546, allocations: 12.05 kB / 369.2 MB, free: 8.863 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.896e-05/0.1546, allocations: 4 kB / 369.2 MB, free: 8.859 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001558/0.1548, allocations: 161.6 kB / 369.3 MB, free: 8.703 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1548, allocations: 3.938 kB / 369.4 MB, free: 8.699 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000464/0.1552, allocations: 79.84 kB / 369.4 MB, free: 8.621 MB / 302.1 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.003353/0.1586, allocations: 1.446 MB / 370.9 MB, free: 7.148 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001472/0.1601, allocations: 482.4 kB / 371.3 MB, free: 6.664 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.1601, allocations: 0 / 371.3 MB, free: 6.664 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00101/0.1611, allocations: 354.5 kB / 371.7 MB, free: 6.305 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000391/0.1615, allocations: 36.66 kB / 371.7 MB, free: 6.27 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004855/0.1664, allocations: 1.977 MB / 373.7 MB, free: 4.246 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003061/0.1667, allocations: 0.7517 MB / 374.5 MB, free: 3.469 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.512e-05/0.1668, allocations: 13.55 kB / 374.5 MB, free: 3.457 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.839e-05/0.1669, allocations: 63.42 kB / 374.5 MB, free: 3.395 MB / 302.1 MB Notification: Performance of SimCode: time 7.01e-07/0.1669, allocations: 0 / 374.5 MB, free: 3.395 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01874/0.1856, allocations: 6.542 MB / 381.1 MB, free: 13.04 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001698/0.1859, allocations: 220.4 kB / 381.3 MB, free: 12.81 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.057/2.243, allocations: 3.938 kB / 381.3 MB, free: 12.8 MB / 318.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OvervoltageProtection_fmu --startTime=0 --stopTime=0.4 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OvervoltageProtection.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat does not exist to compare? outputFormat=mat