Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.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) Ignoring simflag -noemit -emit_protected=() since it seems broken on HelloWorld Running command: "" <> buildModelFMU(PowerGrids.Electrical.Test.TestTapChangerLogicMax,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_TestTapChangerLogicMax",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Electrical.Test.TestTapChangerLogicMax,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_TestTapChangerLogicMax",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.001128/0.001128, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001131/0.001131, allocations: 193.2 kB / 16.13 MB, free: 6.66 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.146/1.146, allocations: 205.1 MB / 222 MB, free: 4.727 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.05553/0.05553, allocations: 14.16 MB / 283.5 MB, free: 7.301 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.001246/0.001246, allocations: 67.91 kB / 345.9 MB, free: 18.38 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06722/0.06848, allocations: 50.14 MB / 396 MB, free: 212 kB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.002083/0.07059, allocations: 1.487 MB / 397.5 MB, free: 14.71 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007435/0.07135, allocations: 0.5388 MB / 398 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.279e-05/0.07139, allocations: 0 / 398 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 1.715e-05/0.07141, allocations: 3.938 kB / 398 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 6.304e-05/0.07149, allocations: 11.94 kB / 398 MB, free: 14.14 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001551/0.07165, allocations: 63.84 kB / 398.1 MB, free: 14.08 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001396/0.0718, allocations: 183.6 kB / 398.3 MB, free: 13.9 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.511e-05/0.07184, allocations: 4 kB / 398.3 MB, free: 13.9 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.54e-05/0.07194, allocations: 95.78 kB / 398.4 MB, free: 13.8 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.255e-05/0.07204, allocations: 91.72 kB / 398.5 MB, free: 13.71 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.482e-05/0.07208, allocations: 12 kB / 398.5 MB, free: 13.7 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.363e-05/0.07212, allocations: 16 kB / 398.5 MB, free: 13.69 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.926e-05/0.07217, allocations: 59.78 kB / 398.6 MB, free: 13.63 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.473e-05/0.07227, allocations: 87.78 kB / 398.6 MB, free: 13.54 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001268/0.07241, allocations: 139.8 kB / 398.8 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.07242, allocations: 0 / 398.8 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.07242, allocations: 0 / 398.8 MB, free: 13.41 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.045e-06/0.07243, allocations: 3.938 kB / 398.8 MB, free: 13.4 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0008207/0.07326, allocations: 0.5497 MB / 399.3 MB, free: 12.8 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.09e-05/0.07329, allocations: 8.031 kB / 399.3 MB, free: 12.8 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.42e-05/0.07336, allocations: 50.72 kB / 399.4 MB, free: 12.74 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.856e-05/0.07345, allocations: 28.81 kB / 399.4 MB, free: 12.71 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001074/0.07356, allocations: 176.3 kB / 399.6 MB, free: 12.5 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.83e-05/0.07358, allocations: 12.34 kB / 399.6 MB, free: 12.49 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.84e-05/0.07365, allocations: 28.36 kB / 399.6 MB, free: 12.46 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005309/0.07418, allocations: 381.2 kB / 400 MB, free: 12.08 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.462e-06/0.0742, allocations: 0 / 400 MB, free: 12.08 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.478e-05/0.07425, allocations: 15.97 kB / 400 MB, free: 12.07 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.637e-06/0.07426, allocations: 0 / 400 MB, free: 12.07 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001695/0.07443, allocations: 63.95 kB / 400.1 MB, free: 12 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003311/0.07477, allocations: 372.6 kB / 400.4 MB, free: 11.59 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002361/0.07501, allocations: 174.5 kB / 400.6 MB, free: 11.41 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000212/0.07523, allocations: 168.8 kB / 400.8 MB, free: 11.24 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.877e-06/0.07524, allocations: 0 / 400.8 MB, free: 11.24 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006457/0.0759, allocations: 0.523 MB / 401.3 MB, free: 10.71 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.303e-06/0.07591, allocations: 0 / 401.3 MB, free: 10.71 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.0008567/0.07677, allocations: 0.6458 MB / 401.9 MB, free: 10.05 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.829e-05/0.07681, allocations: 59.41 kB / 402 MB, free: 9.984 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.515e-05/0.0769, allocations: 141.3 kB / 402.1 MB, free: 9.84 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.074e-05/0.07695, allocations: 45.69 kB / 402.2 MB, free: 9.789 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.153e-05/0.077, allocations: 96.69 kB / 402.3 MB, free: 9.691 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.462e-05/0.07706, allocations: 71.17 kB / 402.3 MB, free: 9.621 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.429e-05/0.07715, allocations: 57.7 kB / 402.4 MB, free: 9.559 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.574e-05/0.07725, allocations: 334.8 kB / 402.7 MB, free: 9.223 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001335/0.07739, allocations: 84.3 kB / 402.8 MB, free: 9.141 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001695/0.07756, allocations: 151.4 kB / 403 MB, free: 8.969 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003231/0.07789, allocations: 249.5 kB / 403.2 MB, free: 8.707 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.407e-06/0.0779, allocations: 4 kB / 403.2 MB, free: 8.703 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003481/0.07826, allocations: 245.2 kB / 403.4 MB, free: 8.457 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.672e-05/0.07828, allocations: 4 kB / 403.5 MB, free: 8.453 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.139e-06/0.07829, allocations: 4 kB / 403.5 MB, free: 8.449 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.977e-06/0.0783, allocations: 0 / 403.5 MB, free: 8.449 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.504e-05/0.07838, allocations: 19.94 kB / 403.5 MB, free: 8.43 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.13e-06/0.07839, allocations: 0 / 403.5 MB, free: 8.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001912/0.07859, allocations: 35.95 kB / 403.5 MB, free: 8.395 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.054e-05/0.07862, allocations: 12 kB / 403.5 MB, free: 8.383 MB / 302.1 MB Warning: Assuming fixed start value for the following 4 variables: locked:DISCRETE(start = lockedStart fixed = true ) "whether the tap-changer/phase-shifter is locked" type: Boolean valueUnderStop:DISCRETE(start = false fixed = true protected = true ) "whether the monitored signal is under the stop limit" type: Boolean valueAboveMax:DISCRETE(start = false fixed = true protected = true ) "wheter the monitored signal is above the maximum limit" type: Boolean running:DISCRETE(start = runningStart fixed = true ) "whether the tap-changer/phase-shifter is running" type: Boolean Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 39 ($PRE.locked,$PRE.valueUnderStop,$PRE.valueAboveMax,$PRE.running,tValueAboveMaxWhileRunning,$PRE.tValueAboveMaxWhileRunning,tTapMoved,$PRE.tTapMoved,lookingToDecreaseTap,lookingToIncreaseTap,tap,$PRE.tap,state,$PRE.state,$whenCondition18,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$whenCondition21,$whenCondition20,$whenCondition19,valueAboveMax,valueUnderStop,locked,running) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.0001606/0.07878, allocations: 161.2 kB / 403.7 MB, free: 8.219 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.97e-05/0.07884, allocations: 31.8 kB / 403.7 MB, free: 8.188 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.375e-05/0.07891, allocations: 29.62 kB / 403.7 MB, free: 8.16 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.07892, allocations: 4 kB / 403.7 MB, free: 8.156 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-06/0.07892, allocations: 0 / 403.7 MB, free: 8.156 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.996e-06/0.07893, allocations: 0 / 403.7 MB, free: 8.156 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002217/0.07916, allocations: 281.4 kB / 404 MB, free: 7.832 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.604e-06/0.07917, allocations: 0 / 404 MB, free: 7.832 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.844e-05/0.0792, allocations: 7.938 kB / 404 MB, free: 7.824 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/0.07921, allocations: 4 kB / 404 MB, free: 7.82 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.912e-05/0.07925, allocations: 27.95 kB / 404.1 MB, free: 7.793 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.07926, allocations: 0 / 404.1 MB, free: 7.793 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.32e-07/0.07926, allocations: 0 / 404.1 MB, free: 7.793 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006614/0.07993, allocations: 0.563 MB / 404.6 MB, free: 7.211 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001236/0.08006, allocations: 128.8 kB / 404.7 MB, free: 7.066 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.043e-05/0.08014, allocations: 19.97 kB / 404.8 MB, free: 7.047 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002007/0.08034, allocations: 43.94 kB / 404.8 MB, free: 7.004 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001717/0.08052, allocations: 79.83 kB / 404.9 MB, free: 6.926 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.511e-05/0.08057, allocations: 47.95 kB / 404.9 MB, free: 6.879 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.095e-05/0.08063, allocations: 95.27 kB / 405 MB, free: 6.785 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.08064, allocations: 3.938 kB / 405 MB, free: 6.781 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002536/0.08089, allocations: 75.98 kB / 405.1 MB, free: 6.707 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 30 ($whenCondition19,$whenCondition20,$whenCondition21,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition17,$whenCondition18,state,locked,tap,lookingToIncreaseTap,lookingToDecreaseTap,tTapMoved,valueUnderStop,valueAboveMax,tValueAboveMaxWhileRunning) * Number of discrete states: 6 (valueAboveMax,tap,locked,state,valueUnderStop,tTapMoved) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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 0.0009244/0.08182, allocations: 1.135 MB / 406.2 MB, free: 5.547 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004197/0.08225, allocations: 299.6 kB / 406.5 MB, free: 5.254 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.542e-06/0.08226, allocations: 0 / 406.5 MB, free: 5.254 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005388/0.08281, allocations: 0.7303 MB / 407.3 MB, free: 4.523 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002611/0.08308, allocations: 48.2 kB / 407.3 MB, free: 4.477 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002269/0.08535, allocations: 2.211 MB / 409.5 MB, free: 2.156 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002224/0.08559, allocations: 0.7138 MB / 410.2 MB, free: 1.418 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000115/0.08571, allocations: 33.97 kB / 410.3 MB, free: 1.387 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001379/0.08585, allocations: 59.39 kB / 410.3 MB, free: 1.328 MB / 302.1 MB Notification: Performance of SimCode: time 2.1e-07/0.08586, allocations: 0 / 410.3 MB, free: 1.328 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.013/0.09887, allocations: 4.605 MB / 414.9 MB, free: 12.77 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001514/0.09903, allocations: 193.2 kB / 415.1 MB, free: 12.51 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.63/1.729, allocations: 0 / 415.1 MB, free: 12.51 MB / 318.1 MB (rm -f PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe ; mkfifo PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe >> ../files/PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax_res.mat --tempDir=temp_PowerGrids_PowerGrids_Electrical_Test_TestTapChangerLogicMax_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 PowerGrids_PowerGrids_Electrical_Test_TestTapChangerLogicMax.fmu > PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe 2>&1) diffSimulationResults("PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Electrical.Test.TestTapChangerLogicMax_res.mat","../files/PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches