Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.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.0009516/0.0009516, allocations: 79.59 kB / 21.18 MB, free: 3.387 MB / 18.57 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.001033/0.001033, allocations: 161 kB / 24.56 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.028/1.028, allocations: 177.1 MB / 205 MB, free: 5.598 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.2512/0.2512, allocations: 29.42 MB / 290.9 MB, free: 2.504 MB / 266.7 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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(PowerSystems.Examples.Generic.Test.GeneratorTest2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="Time|generator.p.[0-9,]+.|generator.phi|generator1.p.[0-9,]+.|generator1.phi",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2") translateModel(PowerSystems.Examples.Generic.Test.GeneratorTest2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="Time|generator.p.[0-9,]+.|generator.phi|generator1.p.[0-9,]+.|generator1.phi",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.673e-06/1.673e-06, allocations: 0 / 369.6 MB, free: 11.01 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.997e-05/2.164e-05, allocations: 2.312 kB / 369.6 MB, free: 11.01 MB / 346.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.004725/0.004746, allocations: 4.84 MB / 374.5 MB, free: 6.137 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.00264/0.007386, allocations: 1.994 MB / 376.5 MB, free: 4.133 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002858/0.007672, allocations: 15.88 kB / 376.5 MB, free: 4.117 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000768/0.00844, allocations: 342.4 kB / 376.8 MB, free: 3.781 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00101/0.00945, allocations: 0.5169 MB / 377.3 MB, free: 3.262 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005683/0.01002, allocations: 287 kB / 377.6 MB, free: 2.98 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007326/0.01075, allocations: 0.7435 MB / 378.4 MB, free: 2.234 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004031/0.01115, allocations: 281.7 kB / 378.6 MB, free: 1.957 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005229/0.01168, allocations: 434.7 kB / 379.1 MB, free: 1.531 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003743/0.01205, allocations: 311.1 kB / 379.4 MB, free: 1.227 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 4.606e-05/0.0121, allocations: 36 kB / 379.4 MB, free: 1.191 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007066/0.0128, allocations: 0.5413 MB / 379.9 MB, free: 0.6484 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001679/0.01297, allocations: 211.5 kB / 380.1 MB, free: 452 kB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001441/0.01312, allocations: 175.6 kB / 380.3 MB, free: 276 kB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008108/0.01393, allocations: 0.6502 MB / 381 MB, free: 15.62 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.545e-06/0.01393, allocations: 0 / 381 MB, free: 15.62 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.01393, allocations: 0 / 381 MB, free: 15.62 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.972e-06/0.01394, allocations: 0 / 381 MB, free: 15.62 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 114 * Number of variables: 114 Notification: Performance of Generate backend data structure: time 0.0008949/0.01483, allocations: 0.8232 MB / 381.8 MB, free: 14.76 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.75e-05/0.01487, allocations: 11.98 kB / 381.8 MB, free: 14.75 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009742/0.01584, allocations: 288.2 kB / 382.1 MB, free: 14.46 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004474/0.01629, allocations: 323.2 kB / 382.4 MB, free: 14.12 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.66e-05/0.01632, allocations: 29.38 kB / 382.4 MB, free: 14.1 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.485e-05/0.01638, allocations: 44.36 kB / 382.5 MB, free: 14.05 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005172/0.0169, allocations: 427 kB / 382.9 MB, free: 13.61 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.049e-05/0.01692, allocations: 8.125 kB / 382.9 MB, free: 13.6 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.122e-05/0.01695, allocations: 16.38 kB / 382.9 MB, free: 13.58 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.681e-05/0.017, allocations: 40.92 kB / 382.9 MB, free: 13.54 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004139/0.01741, allocations: 273.7 kB / 383.2 MB, free: 13.28 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001946/0.01936, allocations: 1.973 MB / 385.2 MB, free: 11.2 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003445/0.0197, allocations: 254.6 kB / 385.4 MB, free: 10.93 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001491/0.01985, allocations: 127.9 kB / 385.6 MB, free: 10.79 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.195e-05/0.01988, allocations: 15.78 kB / 385.6 MB, free: 10.78 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.567e-05/0.01991, allocations: 37.39 kB / 385.6 MB, free: 10.73 MB / 362.7 MB Notification: Performance of pre-optimization done (n=42): time 1.833e-06/0.01991, allocations: 3.938 kB / 385.6 MB, free: 10.73 MB / 362.7 MB Notification: Performance of matching and sorting (n=43): time 0.001903/0.02181, allocations: 1.097 MB / 386.7 MB, free: 9.586 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.879e-05/0.02185, allocations: 81.11 kB / 386.8 MB, free: 9.488 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001873/0.02204, allocations: 296.2 kB / 387.1 MB, free: 9.18 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.462e-05/0.02206, allocations: 33.83 kB / 387.1 MB, free: 9.141 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000124/0.02219, allocations: 287.1 kB / 387.4 MB, free: 8.852 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001042/0.02229, allocations: 162.6 kB / 387.6 MB, free: 8.691 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.333e-05/0.02239, allocations: 91.8 kB / 387.6 MB, free: 8.59 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001475/0.02253, allocations: 0.5196 MB / 388.2 MB, free: 8.059 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001155/0.02265, allocations: 68.95 kB / 388.2 MB, free: 7.992 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001874/0.02284, allocations: 239.5 kB / 388.5 MB, free: 7.703 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000361/0.0232, allocations: 354.8 kB / 388.8 MB, free: 7.293 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.003e-06/0.0232, allocations: 0 / 388.8 MB, free: 7.293 MB / 362.7 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.000606/0.02381, allocations: 472.3 kB / 389.3 MB, free: 6.82 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.587e-05/0.02382, allocations: 8 kB / 389.3 MB, free: 6.812 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.02383, allocations: 4.438 kB / 389.3 MB, free: 6.809 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004372/0.02427, allocations: 163.5 kB / 389.4 MB, free: 6.645 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002007/0.02447, allocations: 103.8 kB / 389.5 MB, free: 6.543 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001929/0.0264, allocations: 2.57 MB / 392.1 MB, free: 3.871 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001311/0.02653, allocations: 19.92 kB / 392.1 MB, free: 3.852 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.576e-05/0.02655, allocations: 20 kB / 392.2 MB, free: 3.832 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0001309/0.02668, allocations: 184.5 kB / 392.3 MB, free: 3.641 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.114e-05/0.02674, allocations: 47.8 kB / 392.4 MB, free: 3.594 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005869/0.02733, allocations: 431.4 kB / 392.8 MB, free: 3.16 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.452e-06/0.02734, allocations: 11.98 kB / 392.8 MB, free: 3.148 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.012e-06/0.02734, allocations: 0 / 392.8 MB, free: 3.148 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.02734, allocations: 0 / 392.8 MB, free: 3.148 MB / 362.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001133/0.02848, allocations: 0.9422 MB / 393.8 MB, free: 2.152 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.955e-06/0.02848, allocations: 4.109 kB / 393.8 MB, free: 2.148 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001884/0.02867, allocations: 87.77 kB / 393.8 MB, free: 2.062 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002839/0.02895, allocations: 123.7 kB / 394 MB, free: 1.938 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.293e-05/0.02897, allocations: 15.98 kB / 394 MB, free: 1.922 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001673/0.03065, allocations: 2.431 MB / 396.4 MB, free: 15.37 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.03065, allocations: 0 / 396.4 MB, free: 15.37 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006947/0.03134, allocations: 0.6626 MB / 397.1 MB, free: 14.67 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.14e-05/0.03138, allocations: 35.75 kB / 397.1 MB, free: 14.64 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.552e-05/0.0314, allocations: 12 kB / 397.1 MB, free: 14.62 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001024/0.0315, allocations: 15.98 kB / 397.1 MB, free: 14.61 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.67e-05/0.03155, allocations: 31.94 kB / 397.2 MB, free: 14.58 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.913e-05/0.03157, allocations: 16 kB / 397.2 MB, free: 14.56 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001051/0.03167, allocations: 197.1 kB / 397.4 MB, free: 14.37 MB / 378.7 MB Notification: Performance of sort global known variables: time 8e-08/0.03167, allocations: 4 kB / 397.4 MB, free: 14.36 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003825/0.03206, allocations: 140 kB / 397.5 MB, free: 14.23 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia.w,constantTorque.phi,inertia1.w,constantTorque1.phi) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001051/0.03216, allocations: 107.1 kB / 397.6 MB, free: 14.11 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007068/0.03287, allocations: 0.5524 MB / 398.2 MB, free: 13.54 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.03287, allocations: 0 / 398.2 MB, free: 13.54 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003841/0.03325, allocations: 395.1 kB / 398.6 MB, free: 13.13 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002953/0.03355, allocations: 64.27 kB / 398.6 MB, free: 13.07 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001423/0.03497, allocations: 0.9433 MB / 399.6 MB, free: 12.09 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001268/0.0351, allocations: 150.2 kB / 399.7 MB, free: 11.92 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001166/0.03522, allocations: 59.23 kB / 399.8 MB, free: 11.86 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.836e-05/0.03528, allocations: 36.48 kB / 399.8 MB, free: 11.83 MB / 378.7 MB Notification: Performance of SimCode: time 7.51e-07/0.03529, allocations: 0 / 399.8 MB, free: 11.83 MB / 378.7 MB Notification: Performance of Templates: time 0.00709/0.04238, allocations: 5.486 MB / 405.3 MB, free: 6.391 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.makefile [Timeout 660] (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.sim & ./PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe 2>&1) [Timeout 240] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.GeneratorTest2.mat","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.4408917743712664]