Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDerivativeLag.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo", uses=false) Using package PowerGrids with version 1.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/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 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: translateModel(PowerGrids.Controls.Test.TestDerivativeLag,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="derivativeLag.T1|derivativeLag.Td|derivativeLag.feedback.y|derivativeLag.gain.k|derivativeLag.gain.u|derivativeLag.gain.y|derivativeLag.initType|derivativeLag.integrator.initType|derivativeLag.integrator.k|derivativeLag.integrator.u|derivativeLag.integrator.y|derivativeLag.integrator.y_start|derivativeLag.noDynamics|derivativeLag.u|derivativeLag.y|derivativeLag.yStart|derivativeLagAnalyticSolution.y|derivativeLagNoDynamics.T1|derivativeLagNoDynamics.Td|derivativeLagNoDynamics.feedback.y|derivativeLagNoDynamics.gain.k|derivativeLagNoDynamics.gain.u|derivativeLagNoDynamics.gain.y|derivativeLagNoDynamics.initType|derivativeLagNoDynamics.noDynamics|derivativeLagNoDynamics.u|derivativeLagNoDynamics.y|derivativeLagNoDynamics.yStart|derivativeLagNoDynamics.zero.y|derivativeLagNoDynamicsAnalyticSolution.y|step.height|step.offset|step.startTime|step.y|time",fileNamePrefix="PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDerivativeLag") translateModel(PowerGrids.Controls.Test.TestDerivativeLag,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="derivativeLag.T1|derivativeLag.Td|derivativeLag.feedback.y|derivativeLag.gain.k|derivativeLag.gain.u|derivativeLag.gain.y|derivativeLag.initType|derivativeLag.integrator.initType|derivativeLag.integrator.k|derivativeLag.integrator.u|derivativeLag.integrator.y|derivativeLag.integrator.y_start|derivativeLag.noDynamics|derivativeLag.u|derivativeLag.y|derivativeLag.yStart|derivativeLagAnalyticSolution.y|derivativeLagNoDynamics.T1|derivativeLagNoDynamics.Td|derivativeLagNoDynamics.feedback.y|derivativeLagNoDynamics.gain.k|derivativeLagNoDynamics.gain.u|derivativeLagNoDynamics.gain.y|derivativeLagNoDynamics.initType|derivativeLagNoDynamics.noDynamics|derivativeLagNoDynamics.u|derivativeLagNoDynamics.y|derivativeLagNoDynamics.yStart|derivativeLagNoDynamics.zero.y|derivativeLagNoDynamicsAnalyticSolution.y|step.height|step.offset|step.startTime|step.y|time",fileNamePrefix="PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDerivativeLag") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009357/0.0009357, allocations: 92.39 kB / 15.71 MB, free: 460 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001701/0.0017, allocations: 179.5 kB / 16.59 MB, free: 6.855 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.841/1.841, allocations: 205.4 MB / 222.8 MB, free: 5.879 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06199/0.06199, allocations: 14.16 MB / 285.2 MB, free: 7.375 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005338/0.0005338, allocations: 16 kB / 348.8 MB, free: 17.94 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1193/0.1199, allocations: 51.11 MB / 399.9 MB, free: 14.79 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDerivativeLag): time 0.002587/0.1225, allocations: 1.494 MB / 401.4 MB, free: 13.28 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005679/0.1231, allocations: 155.5 kB / 401.6 MB, free: 13.12 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002097/0.1233, allocations: 7.938 kB / 401.6 MB, free: 13.12 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002094/0.1236, allocations: 15.86 kB / 401.6 MB, free: 13.1 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002267/0.1238, allocations: 19.86 kB / 401.6 MB, free: 13.08 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001668/0.124, allocations: 27.97 kB / 401.6 MB, free: 13.05 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002485/0.1242, allocations: 99.7 kB / 401.7 MB, free: 12.96 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002134/0.1245, allocations: 45.42 kB / 401.8 MB, free: 12.91 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.909e-05/0.1246, allocations: 35.8 kB / 401.8 MB, free: 12.88 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001457/0.1247, allocations: 31.78 kB / 401.8 MB, free: 12.84 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.661e-05/0.1248, allocations: 4 kB / 401.8 MB, free: 12.84 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.121e-05/0.1248, allocations: 4 kB / 401.8 MB, free: 12.84 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.865e-05/0.1248, allocations: 11.94 kB / 401.9 MB, free: 12.82 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.315e-05/0.1249, allocations: 53.52 kB / 401.9 MB, free: 12.77 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00015/0.1251, allocations: 67.84 kB / 402 MB, free: 12.7 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.205e-06/0.1251, allocations: 0 / 402 MB, free: 12.7 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.916e-06/0.1251, allocations: 0 / 402 MB, free: 12.7 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.784e-06/0.1251, allocations: 4 kB / 402 MB, free: 12.7 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.0008033/0.1259, allocations: 399.1 kB / 402.4 MB, free: 12.26 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.941e-05/0.126, allocations: 12.02 kB / 402.4 MB, free: 12.25 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.181e-05/0.126, allocations: 23.81 kB / 402.4 MB, free: 12.22 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003108/0.1264, allocations: 210.8 kB / 402.6 MB, free: 11.98 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.028e-05/0.1264, allocations: 12.14 kB / 402.6 MB, free: 11.96 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.938e-05/0.1265, allocations: 12 kB / 402.6 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003072/0.1268, allocations: 127.2 kB / 402.8 MB, free: 11.81 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.154e-05/0.1268, allocations: 4 kB / 402.8 MB, free: 11.8 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.26e-05/0.1269, allocations: 4 kB / 402.8 MB, free: 11.8 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.303e-06/0.1269, allocations: 0 / 402.8 MB, free: 11.8 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002264/0.1271, allocations: 75.83 kB / 402.8 MB, free: 11.73 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008411/0.128, allocations: 0.603 MB / 403.4 MB, free: 11.05 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000304/0.1283, allocations: 115.8 kB / 403.6 MB, free: 10.91 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001083/0.1284, allocations: 46.75 kB / 403.6 MB, free: 10.86 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.491e-05/0.1284, allocations: 0 / 403.6 MB, free: 10.86 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.705e-05/0.1285, allocations: 50.44 kB / 403.6 MB, free: 10.8 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 9.92e-07/0.1285, allocations: 0 / 403.6 MB, free: 10.8 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004076/0.1289, allocations: 117.7 kB / 403.8 MB, free: 10.68 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.133e-05/0.129, allocations: 107.1 kB / 403.9 MB, free: 10.55 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001499/0.1292, allocations: 150.3 kB / 404 MB, free: 10.39 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.952e-05/0.1292, allocations: 29.7 kB / 404 MB, free: 10.36 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.161e-05/0.1293, allocations: 115.8 kB / 404.2 MB, free: 10.24 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.717e-05/0.1293, allocations: 27.64 kB / 404.2 MB, free: 10.21 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.508e-06/0.1293, allocations: 4 kB / 404.2 MB, free: 10.21 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000211/0.1296, allocations: 318.8 kB / 404.5 MB, free: 9.887 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.904e-05/0.1297, allocations: 27.97 kB / 404.5 MB, free: 9.859 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001122/0.1298, allocations: 73.88 kB / 404.6 MB, free: 9.766 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001016/0.1299, allocations: 36.02 kB / 404.6 MB, free: 9.73 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.1299, allocations: 0 / 404.6 MB, free: 9.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000264/0.1302, allocations: 121.4 kB / 404.8 MB, free: 9.605 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.955e-05/0.1302, allocations: 8 kB / 404.8 MB, free: 9.598 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.04e-05/0.1302, allocations: 8.109 kB / 404.8 MB, free: 9.59 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.562e-05/0.1302, allocations: 4 kB / 404.8 MB, free: 9.586 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000138/0.1304, allocations: 27.92 kB / 404.8 MB, free: 9.559 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.678e-06/0.1304, allocations: 0 / 404.8 MB, free: 9.559 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.199e-05/0.1305, allocations: 23.83 kB / 404.8 MB, free: 9.535 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.341e-05/0.1305, allocations: 4 kB / 404.8 MB, free: 9.531 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 1 (derivativeLag.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001121/0.1306, allocations: 125.8 kB / 404.9 MB, free: 9.398 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.557e-05/0.1307, allocations: 11.91 kB / 405 MB, free: 9.387 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.686e-05/0.1307, allocations: 16.3 kB / 405 MB, free: 9.371 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.126e-06/0.1308, allocations: 7.953 kB / 405 MB, free: 9.363 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.1308, allocations: 0 / 405 MB, free: 9.363 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.069e-06/0.1308, allocations: 0 / 405 MB, free: 9.363 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002651/0.131, allocations: 201.6 kB / 405.2 MB, free: 9.117 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.985e-06/0.1311, allocations: 320 / 405.2 MB, free: 9.117 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001187/0.1312, allocations: 23.92 kB / 405.2 MB, free: 9.094 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.817e-06/0.1312, allocations: 0 / 405.2 MB, free: 9.094 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.531e-05/0.1312, allocations: 4 kB / 405.2 MB, free: 9.09 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.759e-06/0.1312, allocations: 8 kB / 405.2 MB, free: 9.082 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.068e-06/0.1312, allocations: 3.953 kB / 405.2 MB, free: 9.078 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00161/0.1329, allocations: 1.217 MB / 406.4 MB, free: 7.719 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.362e-05/0.1329, allocations: 89.14 kB / 406.5 MB, free: 7.613 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.013e-05/0.133, allocations: 4 kB / 406.5 MB, free: 7.609 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001032/0.1331, allocations: 11.95 kB / 406.5 MB, free: 7.598 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.483e-05/0.1332, allocations: 3.984 kB / 406.5 MB, free: 7.594 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.512e-06/0.1332, allocations: 4 kB / 406.5 MB, free: 7.59 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001336/0.1333, allocations: 115.2 kB / 406.7 MB, free: 7.477 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1333, allocations: 0 / 406.7 MB, free: 7.477 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003973/0.1337, allocations: 19.91 kB / 406.7 MB, free: 7.457 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (derivativeLag.integrator.y) * 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 (7): * Single equations (assignments): 7 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001856/0.1339, allocations: 103.2 kB / 406.8 MB, free: 7.348 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003306/0.1343, allocations: 75.78 kB / 406.9 MB, free: 7.273 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.1343, allocations: 0 / 406.9 MB, free: 7.273 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001093/0.1344, allocations: 36.34 kB / 406.9 MB, free: 7.238 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004785/0.1349, allocations: 27.98 kB / 406.9 MB, free: 7.211 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009188/0.1358, allocations: 394.3 kB / 407.3 MB, free: 6.777 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004636/0.1363, allocations: 0.7089 MB / 408 MB, free: 6.043 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.096e-05/0.1364, allocations: 12.8 kB / 408 MB, free: 6.031 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.369e-05/0.1364, allocations: 15.44 kB / 408 MB, free: 6.016 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1365, allocations: 0 / 408 MB, free: 6.016 MB / 302.1 MB Notification: Performance of Templates: time 0.004236/0.1407, allocations: 0.8913 MB / 408.9 MB, free: 5.129 MB / 302.1 MB make -j1 -f PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDerivativeLag.makefile (rm -f PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDerivativeLag.pipe ; mkfifo PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDerivativeLag.pipe ; head -c 1048576 < PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDerivativeLag.pipe >> ../files/PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDerivativeLag.sim & ./PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDerivativeLag -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDerivativeLag.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDerivativeLag_res.mat does not exist to compare? outputFormat=mat