Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001737/0.001737, allocations: 121.4 kB / 17.79 MB, free: 5.121 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00136/0.00136, allocations: 190.9 kB / 20.73 MB, free: 2.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.576/1.576, allocations: 225.6 MB / 249.1 MB, free: 3.621 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1833/0.1833, allocations: 38.51 MB / 342.5 MB, free: 8.066 MB / 270.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) 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(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASM_Y_D",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASM_Y_D",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001953/0.001953, allocations: 70.55 kB / 478.6 MB, free: 33.57 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1164/0.1184, allocations: 61.25 MB / 0.5272 GB, free: 1.379 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D): time 0.008369/0.1267, allocations: 5.767 MB / 0.5328 GB, free: 11.59 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.007845/0.1346, allocations: 4.463 MB / 0.5372 GB, free: 7.105 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005883/0.1352, allocations: 19.88 kB / 0.5372 GB, free: 7.086 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009735/0.1449, allocations: 4.921 MB / 0.542 GB, free: 2.156 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001484/0.1464, allocations: 434 kB / 0.5424 GB, free: 1.73 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009172/0.1473, allocations: 283.5 kB / 0.5427 GB, free: 1.453 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002966/0.1503, allocations: 1.719 MB / 0.5444 GB, free: 15.73 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009404/0.1512, allocations: 0.6259 MB / 0.545 GB, free: 15.1 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007713/0.152, allocations: 490.4 kB / 0.5455 GB, free: 14.62 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007593/0.1527, allocations: 0.5372 MB / 0.546 GB, free: 14.08 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001126/0.1528, allocations: 72 kB / 0.5461 GB, free: 14.01 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003241/0.1532, allocations: 143.8 kB / 0.5462 GB, free: 13.87 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003517/0.1535, allocations: 339 kB / 0.5465 GB, free: 13.54 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000482/0.154, allocations: 402.2 kB / 0.5469 GB, free: 13.14 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001489/0.1555, allocations: 1.031 MB / 0.5479 GB, free: 12.11 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.1555, allocations: 0 / 0.5479 GB, free: 12.11 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.1555, allocations: 3.938 kB / 0.5479 GB, free: 12.1 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.388e-05/0.1555, allocations: 0 / 0.5479 GB, free: 12.1 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 150 * Number of variables: 150 Notification: Performance of Generate backend data structure: time 0.002119/0.1576, allocations: 1.051 MB / 0.5489 GB, free: 10.99 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.617e-05/0.1577, allocations: 15.89 kB / 0.549 GB, free: 10.97 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000136/0.1578, allocations: 98.7 kB / 0.5491 GB, free: 10.87 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004616/0.1583, allocations: 108.4 kB / 0.5492 GB, free: 10.76 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001311/0.1596, allocations: 0.6351 MB / 0.5498 GB, free: 10.09 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001112/0.1597, allocations: 75 kB / 0.5499 GB, free: 10.01 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001117/0.1598, allocations: 60 kB / 0.5499 GB, free: 9.949 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001351/0.1612, allocations: 0.8099 MB / 0.5507 GB, free: 9.102 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.358e-05/0.1612, allocations: 7.953 kB / 0.5507 GB, free: 9.094 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.252e-05/0.1613, allocations: 24 kB / 0.5507 GB, free: 9.07 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001335/0.1614, allocations: 53.27 kB / 0.5508 GB, free: 9.016 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001052/0.1624, allocations: 0.5828 MB / 0.5514 GB, free: 8.43 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004422/0.1669, allocations: 2.935 MB / 0.5542 GB, free: 5.387 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000791/0.1677, allocations: 406 kB / 0.5546 GB, free: 4.973 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003332/0.168, allocations: 210.3 kB / 0.5548 GB, free: 4.762 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.067e-05/0.168, allocations: 4.656 kB / 0.5548 GB, free: 4.758 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005245/0.1685, allocations: 346.4 kB / 0.5551 GB, free: 4.395 MB / 414.1 MB Notification: Performance of pre-optimization done (n=42): time 1.823e-06/0.1685, allocations: 0 / 0.5551 GB, free: 4.395 MB / 414.1 MB Notification: Performance of matching and sorting (n=45): time 0.003387/0.1719, allocations: 2.049 MB / 0.5571 GB, free: 2.191 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001097/0.172, allocations: 144.4 kB / 0.5573 GB, free: 2.02 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005951/0.1726, allocations: 445.9 kB / 0.5577 GB, free: 1.578 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.979e-05/0.1727, allocations: 37.7 kB / 0.5577 GB, free: 1.535 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000347/0.173, allocations: 340.6 kB / 0.5581 GB, free: 1.195 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001826/0.1732, allocations: 166.6 kB / 0.5582 GB, free: 1.031 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002005/0.1734, allocations: 114.3 kB / 0.5583 GB, free: 0.9141 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002161/0.1736, allocations: 362.8 kB / 0.5587 GB, free: 0.5508 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004149/0.174, allocations: 229.2 kB / 0.5589 GB, free: 336 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005692/0.1746, allocations: 393.7 kB / 0.5593 GB, free: 15.88 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002853/0.1775, allocations: 1.328 MB / 0.5606 GB, free: 14.45 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.249e-06/0.1775, allocations: 8 kB / 0.5606 GB, free: 14.44 MB / 430.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001823/0.1793, allocations: 0.9593 MB / 0.5615 GB, free: 13.46 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.771e-05/0.1793, allocations: 37.64 kB / 0.5615 GB, free: 13.42 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.014e-05/0.1794, allocations: 4 kB / 0.5616 GB, free: 13.41 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009447/0.1803, allocations: 308.3 kB / 0.5618 GB, free: 13.11 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009232/0.1812, allocations: 179.7 kB / 0.562 GB, free: 12.93 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007251/0.1885, allocations: 5.294 MB / 0.5672 GB, free: 7.367 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004511/0.1889, allocations: 27.94 kB / 0.5672 GB, free: 7.34 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.067e-05/0.189, allocations: 27.98 kB / 0.5672 GB, free: 7.312 MB / 430.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $DER.asm_Y_D.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 6 (system.initime,relay1.cnt,$PRE.relay1.cnt,$whenCondition1,relay1.y,$PRE.relay1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,15)} Notification: Performance of prepare postOptimizeDAE: time 0.0004697/0.1894, allocations: 302.2 kB / 0.5675 GB, free: 7.004 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.66e-05/0.1895, allocations: 55.67 kB / 0.5676 GB, free: 6.949 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001333/0.1909, allocations: 0.8109 MB / 0.5684 GB, free: 6.082 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.482e-06/0.1909, allocations: 4 kB / 0.5684 GB, free: 6.078 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.446e-06/0.1909, allocations: 4 kB / 0.5684 GB, free: 6.074 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.783e-06/0.1909, allocations: 3.984 kB / 0.5684 GB, free: 6.07 MB / 430.1 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.002823/0.1937, allocations: 1.659 MB / 0.57 GB, free: 4.281 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.907e-06/0.1937, allocations: 8.078 kB / 0.57 GB, free: 4.273 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00122/0.1949, allocations: 187.8 kB / 0.5702 GB, free: 4.09 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002689/0.1952, allocations: 86.45 kB / 0.5703 GB, free: 3.996 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.915e-05/0.1953, allocations: 15.94 kB / 0.5703 GB, free: 3.98 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003698/0.199, allocations: 4.257 MB / 0.5744 GB, free: 15.3 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.704e-06/0.199, allocations: 0 / 0.5744 GB, free: 15.3 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001742/0.2007, allocations: 1.128 MB / 0.5755 GB, free: 14.09 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003122/0.201, allocations: 184.6 kB / 0.5757 GB, free: 13.89 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.202e-05/0.2011, allocations: 12 kB / 0.5757 GB, free: 13.88 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002964/0.2014, allocations: 19.98 kB / 0.5758 GB, free: 13.86 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.618e-05/0.2015, allocations: 35.89 kB / 0.5758 GB, free: 13.82 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.488e-05/0.2015, allocations: 12 kB / 0.5758 GB, free: 13.81 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003959/0.2019, allocations: 319.1 kB / 0.5761 GB, free: 13.5 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2019, allocations: 4 kB / 0.5761 GB, free: 13.5 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0007347/0.2027, allocations: 163.9 kB / 0.5763 GB, free: 13.34 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (asm_Y_D.motor.i[3],asm_Y_D.motor.psi_s[1],asm_Y_D.motor.psi_s[2],asm_Y_D.motor.psi_rd[1],asm_Y_D.motor.psi_rq[1],loadInertia.w,frictTorq.phi) * Number of discrete variables: 4 ($whenCondition1,relay1.y,relay1.cnt,system.initime) * Number of discrete states: 3 (relay1.y,relay1.cnt,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002/0.2047, allocations: 1.683 MB / 0.5779 GB, free: 11.56 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001975/0.2066, allocations: 0.9521 MB / 0.5788 GB, free: 10.57 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.2066, allocations: 0 / 0.5788 GB, free: 10.57 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008436/0.2075, allocations: 0.6175 MB / 0.5794 GB, free: 9.898 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007552/0.2082, allocations: 135.9 kB / 0.5796 GB, free: 9.77 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009806/0.218, allocations: 6.162 MB / 0.5856 GB, free: 3.363 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007325/0.2188, allocations: 0.9799 MB / 0.5865 GB, free: 2.355 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0003749/0.2191, allocations: 116.7 kB / 0.5867 GB, free: 2.242 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003322/0.2195, allocations: 223.4 kB / 0.5869 GB, free: 2.023 MB / 446.1 MB Notification: Performance of SimCode: time 1.092e-06/0.2195, allocations: 0 / 0.5869 GB, free: 2.023 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05355/0.273, allocations: 14.31 MB / 0.6008 GB, free: 3.902 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.95/13.22, allocations: 9.406 kB / 0.6009 GB, free: 3.895 MB / 462.1 MB " [Timeout remaining time 647] (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASM_Y_D_fmu --startTime=0 --stopTime=3 --stepSize=0.0012 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASM_Y_D.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.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: 16.6201228806749]