Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001337/0.001337, allocations: 78.09 kB / 19.76 MB, free: 1.875 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00148/0.00148, allocations: 156.9 kB / 23.01 MB, free: 4.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.525/1.525, allocations: 158.6 MB / 184.8 MB, free: 6.203 MB / 174.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06321/0.06321, allocations: 10.65 MB / 247.7 MB, free: 8.48 MB / 238.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(PowerGrids.Controls.Test.TestDerivativeLag,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,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_PowerGrids.Controls.Test.TestDerivativeLag") translateModel(PowerGrids.Controls.Test.TestDerivativeLag,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,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_PowerGrids.Controls.Test.TestDerivativeLag") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00256/0.00256, allocations: 72.23 kB / 371.4 MB, free: 10.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1085/0.111, allocations: 52.89 MB / 424.2 MB, free: 5.383 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDerivativeLag): time 0.003631/0.1147, allocations: 1.767 MB / 426 MB, free: 3.605 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004724/0.1151, allocations: 171.5 kB / 426.2 MB, free: 3.438 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001127/0.1153, allocations: 7.875 kB / 426.2 MB, free: 3.43 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001692/0.1154, allocations: 23.73 kB / 426.2 MB, free: 3.406 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000186/0.1156, allocations: 27.8 kB / 426.2 MB, free: 3.379 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001191/0.1157, allocations: 43.94 kB / 426.3 MB, free: 3.336 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002164/0.1159, allocations: 127.6 kB / 426.4 MB, free: 3.211 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001539/0.1161, allocations: 37.52 kB / 426.4 MB, free: 3.176 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.183e-05/0.1162, allocations: 43.8 kB / 426.5 MB, free: 3.133 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001076/0.1163, allocations: 43.77 kB / 426.5 MB, free: 3.09 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.305e-05/0.1163, allocations: 8 kB / 426.5 MB, free: 3.082 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.248e-05/0.1163, allocations: 11.94 kB / 426.5 MB, free: 3.07 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.45e-05/0.1164, allocations: 27.86 kB / 426.6 MB, free: 3.043 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.784e-05/0.1164, allocations: 35.8 kB / 426.6 MB, free: 3.008 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001747/0.1166, allocations: 107.5 kB / 426.7 MB, free: 2.902 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.1166, allocations: 3.938 kB / 426.7 MB, free: 2.898 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.1166, allocations: 0 / 426.7 MB, free: 2.898 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.929e-06/0.1166, allocations: 0 / 426.7 MB, free: 2.898 MB / 350.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.0005889/0.1172, allocations: 349.9 kB / 427.1 MB, free: 2.523 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.357e-05/0.1172, allocations: 8.031 kB / 427.1 MB, free: 2.516 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.32e-05/0.1173, allocations: 16.84 kB / 427.1 MB, free: 2.5 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003193/0.1176, allocations: 162.3 kB / 427.2 MB, free: 2.316 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.609e-05/0.1176, allocations: 12.5 kB / 427.3 MB, free: 2.305 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.115e-05/0.1176, allocations: 8.375 kB / 427.3 MB, free: 2.297 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003027/0.1179, allocations: 138.2 kB / 427.4 MB, free: 2.141 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.357e-06/0.1179, allocations: 0 / 427.4 MB, free: 2.141 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.506e-05/0.118, allocations: 4 kB / 427.4 MB, free: 2.137 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.113e-06/0.118, allocations: 4 kB / 427.4 MB, free: 2.133 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002023/0.1182, allocations: 75.83 kB / 427.5 MB, free: 2.059 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007276/0.1189, allocations: 0.5171 MB / 428 MB, free: 1.488 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002954/0.1192, allocations: 111.9 kB / 428.1 MB, free: 1.352 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001102/0.1193, allocations: 38.62 kB / 428.1 MB, free: 1.305 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.728e-05/0.1193, allocations: 4 kB / 428.1 MB, free: 1.301 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.898e-05/0.1193, allocations: 38.5 kB / 428.2 MB, free: 1.254 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.052e-06/0.1193, allocations: 0 / 428.2 MB, free: 1.254 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004051/0.1197, allocations: 117.5 kB / 428.3 MB, free: 1.133 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.028e-05/0.1198, allocations: 106.8 kB / 428.4 MB, free: 1.004 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001525/0.12, allocations: 146.5 kB / 428.5 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.275e-05/0.12, allocations: 29.7 kB / 428.6 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000102/0.1201, allocations: 119.9 kB / 428.7 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.883e-05/0.1201, allocations: 27.75 kB / 428.7 MB, free: 0.668 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.034e-05/0.1202, allocations: 25.7 kB / 428.7 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000167/0.1203, allocations: 323.1 kB / 429.1 MB, free: 320 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.949e-05/0.1204, allocations: 27.98 kB / 429.1 MB, free: 292 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001468/0.1206, allocations: 107.5 kB / 429.2 MB, free: 156 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002029/0.1208, allocations: 89.06 kB / 429.3 MB, free: 48 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.1208, allocations: 0 / 429.3 MB, free: 48 kB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002892/0.1211, allocations: 129.8 kB / 429.4 MB, free: 15.91 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.559e-05/0.1211, allocations: 4 kB / 429.4 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.683e-06/0.1211, allocations: 4 kB / 429.4 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.759e-05/0.1211, allocations: 4 kB / 429.4 MB, free: 15.9 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001355/0.1212, allocations: 27.97 kB / 429.4 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.536e-06/0.1213, allocations: 3.938 kB / 429.4 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.37e-05/0.1213, allocations: 20.05 kB / 429.5 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.329e-05/0.1214, allocations: 8 kB / 429.5 MB, free: 15.84 MB / 366.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001235/0.1215, allocations: 117.8 kB / 429.6 MB, free: 15.72 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.673e-05/0.1215, allocations: 15.94 kB / 429.6 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.174e-05/0.1215, allocations: 12.47 kB / 429.6 MB, free: 15.69 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.1216, allocations: 4 kB / 429.6 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.1216, allocations: 0 / 429.6 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.956e-06/0.1216, allocations: 0 / 429.6 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001905/0.1217, allocations: 145.3 kB / 429.8 MB, free: 15.51 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.915e-06/0.1218, allocations: 3.938 kB / 429.8 MB, free: 15.51 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001161/0.1219, allocations: 23.92 kB / 429.8 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.968e-06/0.1219, allocations: 4 kB / 429.8 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.649e-06/0.1219, allocations: 0 / 429.8 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.1219, allocations: 0 / 429.8 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.678e-06/0.1219, allocations: 4 kB / 429.8 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003792/0.1223, allocations: 225.1 kB / 430 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.453e-05/0.1223, allocations: 15.86 kB / 430 MB, free: 15.22 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.793e-05/0.1223, allocations: 0 / 430 MB, free: 15.22 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.501e-05/0.1224, allocations: 12.06 kB / 430 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.036e-05/0.1225, allocations: 11.92 kB / 430.1 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.08e-06/0.1225, allocations: 0 / 430.1 MB, free: 15.2 MB / 366.1 MB Notification: Performance of sorting global known variables: time 9.939e-05/0.1226, allocations: 119.9 kB / 430.2 MB, free: 15.08 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1226, allocations: 0 / 430.2 MB, free: 15.08 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002559/0.1228, allocations: 19.95 kB / 430.2 MB, free: 15.06 MB / 366.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.446e-05/0.1229, allocations: 95.25 kB / 430.3 MB, free: 14.96 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002525/0.1232, allocations: 68.08 kB / 430.4 MB, free: 14.89 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.674e-06/0.1232, allocations: 3.938 kB / 430.4 MB, free: 14.89 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 9.838e-05/0.1233, allocations: 31.92 kB / 430.4 MB, free: 14.86 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003344/0.1236, allocations: 34.45 kB / 430.4 MB, free: 14.82 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005406/0.1241, allocations: 245.4 kB / 430.7 MB, free: 14.55 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.67e-05/0.1242, allocations: 97.55 kB / 430.8 MB, free: 14.43 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.715e-05/0.1243, allocations: 4.5 kB / 430.8 MB, free: 14.43 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.35e-05/0.1243, allocations: 16.5 kB / 430.8 MB, free: 14.41 MB / 366.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1243, allocations: 0 / 430.8 MB, free: 14.41 MB / 366.1 MB Notification: Performance of Templates: time 0.004065/0.1284, allocations: 1.053 MB / 431.8 MB, free: 13.38 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag.makefile [Timeout 660] (rm -f PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag.pipe ; mkfifo PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag.pipe >> ../files/PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag.sim & ./PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag.pipe 2>&1) [Timeout 480] diffSimulationResults("PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Controls.Test.TestDerivativeLag_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.0504811520222574]