Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "[:1:22-1:33:writable] Warning: Modelica only supports 32-bit signed integers! Transforming: 13743895347 into a real Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0002259/0.0002259, allocations: 0 / 0, free: 0 / 0 " [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.0001838/0.0001838, allocations: 0 / 0, free: 0 / 0 " [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 0.1247/0.1247, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 180] 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.02039/0.02039, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 180] Using package PowerSystems with version 2.1.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: simulate(PowerSystems.Examples.AC3ph.Drives.SM_ctrl,startTime=0,stopTime=3,tolerance=1e-05,numberOfIntervals=36594,outputFormat="mat",variableFilter="Time|loadInertia.flange_a.tau|loadInertia.w|sm_ctrl.motor.tau_el|sm_ctrl.motor.w_el",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrl",simflags="-abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS") simulate(PowerSystems.Examples.AC3ph.Drives.SM_ctrl,startTime=0,stopTime=3,tolerance=1e-05,numberOfIntervals=36594,outputFormat="mat",variableFilter="Time|loadInertia.flange_a.tau|loadInertia.w|sm_ctrl.motor.tau_el|sm_ctrl.motor.w_el",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrl",simflags="-abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS") [Timeout 900] "Notification: Performance of FrontEnd - loaded program: time 6.71e-07/6.71e-07, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd - Absyn->SCode: time 9.628e-06/1.03e-05, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.SM_ctrl): time 0.008166/0.008177, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.instExpressions: time 0.005288/0.01346, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.updateImplicitVariability: time 0.0003319/0.0138, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeComponents: time 0.000856/0.01465, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeBindings: time 0.001608/0.01626, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeClassSections: time 0.0008222/0.01708, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.flatten: time 0.001443/0.01853, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.resolveConnections: time 0.001669/0.02019, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFEvalConstants.evaluate: time 0.001306/0.0215, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFSimplifyModel.simplify: time 0.000789/0.02229, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFPackage.collectConstants: time 0.000147/0.02244, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.collectFunctions: time 0.0009899/0.02343, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFScalarize.scalarize: time 0.0004923/0.02392, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFVerifyModel.verify: time 0.0004964/0.02442, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFConvertDAE.convert: time 0.00165/0.02606, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd - DAE generated: time 0.0001826/0.02625, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd: time 1.112e-06/0.02625, allocations: 0 / 0, free: 0 / 0 Notification: Performance of Transformations before backend: time 1.126e-05/0.02626, allocations: 0 / 0, free: 0 / 0 Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 302 * Number of variables: 302 Notification: Performance of Generate backend data structure: time 0.002498/0.02876, allocations: 0 / 0, free: 0 / 0 Notification: Performance of prepare preOptimizeDAE: time 9.805e-05/0.02886, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005656/0.02942, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt evaluateParameters (simulation): time 0.001178/0.0306, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002049/0.0308, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002157/0.03102, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt clockPartitioning (simulation): time 0.001547/0.03257, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt findStateOrder (simulation): time 3.681e-05/0.0326, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001409/0.03275, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001087/0.03285, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007466/0.0336, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004652/0.03825, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt comSubExp (simulation): time 0.0006628/0.03892, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt resolveLoops (simulation): time 0.0002737/0.03919, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt evalFunc (simulation): time 3.09e-05/0.03922, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005686/0.03979, allocations: 0 / 0, free: 0 / 0 Notification: Performance of pre-optimization done (n=88): time 7.234e-06/0.0398, allocations: 0 / 0, free: 0 / 0 Notification: Performance of matching and sorting (n=92): time 0.002831/0.04263, allocations: 0 / 0, free: 0 / 0 Notification: Performance of inlineWhenForInitialization (initialization): time 4.801e-05/0.04268, allocations: 0 / 0, free: 0 / 0 Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003905/0.04307, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectPreVariables (initialization): time 0.0001194/0.04319, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectInitialEqns (initialization): time 0.0002832/0.04347, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectInitialBindings (initialization): time 0.000223/0.04369, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002891/0.04398, allocations: 0 / 0, free: 0 / 0 Notification: Performance of setup shared object (initialization): time 4.843e-05/0.04403, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preBalanceInitialSystem (initialization): time 0.000328/0.04436, allocations: 0 / 0, free: 0 / 0 Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003374/0.04469, allocations: 0 / 0, free: 0 / 0 Notification: Performance of analyzeInitialSystem (initialization): time 0.001048/0.04574, allocations: 0 / 0, free: 0 / 0 Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.188e-05/0.04575, allocations: 0 / 0, free: 0 / 0 Notification: Performance of matching and sorting (n=154) (initialization): time 0.001743/0.0475, allocations: 0 / 0, free: 0 / 0 Notification: Performance of prepare postOptimizeDAE: time 6.166e-05/0.04756, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.53e-05/0.04757, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt tearingSystem (initialization): time 0.001105/0.04868, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005168/0.0492, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009603/0.05016, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004488/0.05061, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001288/0.05073, allocations: 0 / 0, free: 0 / 0 Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $DER.sm_ctrl.rotor.w = 0.0. Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004276/0.05116, allocations: 0 / 0, free: 0 / 0 Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003404/0.0515, allocations: 0 / 0, free: 0 / 0 Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009847/0.05249, allocations: 0 / 0, free: 0 / 0 Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.194e-05/0.0525, allocations: 0 / 0, free: 0 / 0 Notification: Performance of matching and sorting (n=154) (initialization_lambda0): time 0.001632/0.05413, allocations: 0 / 0, free: 0 / 0 Notification: Performance of prepare postOptimizeDAE: time 5.63e-05/0.05419, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.401e-05/0.0542, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt tearingSystem (initialization): time 0.001016/0.05522, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004986/0.05572, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009134/0.05663, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004316/0.05706, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000115/0.05718, allocations: 0 / 0, free: 0 / 0 Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization_lambda0 system: $DER.sm_ctrl.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * Number of states: 0 () * Number of discrete variables: 29 (system.initime,$PRE.sm_ctrl.inverter.modulator.gates[1],$PRE.sm_ctrl.inverter.modulator.gates[2],$PRE.sm_ctrl.inverter.modulator.gates[3],$PRE.sm_ctrl.inverter.modulator.gates[4],$PRE.sm_ctrl.inverter.modulator.gates[5],$PRE.sm_ctrl.inverter.modulator.gates[6],$PRE.sm_ctrl.inverter.modulator.t0[3],$PRE.sm_ctrl.inverter.modulator.t0[2],$PRE.sm_ctrl.inverter.modulator.t0[1],$PRE.sm_ctrl.inverter.modulator.sigdel_t[3],$PRE.sm_ctrl.inverter.modulator.sigdel_t[2],$PRE.sm_ctrl.inverter.modulator.sigdel_t[1],sm_ctrl.inverter.modulator.t0[3],sm_ctrl.inverter.modulator.t0[2],sm_ctrl.inverter.modulator.t0[1],sm_ctrl.inverter.modulator.sigdel_t[3],sm_ctrl.inverter.modulator.sigdel_t[2],sm_ctrl.inverter.modulator.sigdel_t[1],sm_ctrl.inverter.modulator.gates[6],sm_ctrl.inverter.modulator.gates[5],sm_ctrl.inverter.modulator.gates[4],sm_ctrl.inverter.modulator.gates[3],sm_ctrl.inverter.modulator.gates[2],sm_ctrl.inverter.modulator.gates[1],$whenCondition1,$whenCondition2,$whenCondition3,PI_i_q.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (104): * Single equations (assignments): 102 * Array equations: 1 * 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 {(2,30)} Notification: Performance of prepare postOptimizeDAE: time 0.0003201/0.0575, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001522/0.05765, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008502/0.0585, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.513e-05/0.05852, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.05853, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.127e-06/0.05854, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001857/0.06039, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.192e-06/0.0604, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005208/0.06092, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt tearingSystem (simulation): time 7.731e-05/0.061, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.602e-05/0.06107, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006062/0.06168, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.06168, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009942/0.06268, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt removeConstants (simulation): time 0.0003169/0.06299, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003287/0.06332, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003654/0.06369, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001704/0.06386, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.374e-05/0.06393, allocations: 0 / 0, free: 0 / 0 Notification: Performance of sorting global known variables: time 0.0002115/0.06414, allocations: 0 / 0, free: 0 / 0 Notification: Performance of sort global known variables: time 1.879e-05/0.06416, allocations: 0 / 0, free: 0 / 0 Notification: Performance of remove unused functions: time 0.001625/0.06579, allocations: 0 / 0, free: 0 / 0 Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (sm_ctrl.motor.i_s[1],sm_ctrl.motor.i_s[2],sm_ctrl.motor.i_s[3],loadInertia.w,frictTorq.phi,PI_i_q.I.y) * Number of discrete variables: 16 ($whenCondition3,$whenCondition2,$whenCondition1,sm_ctrl.inverter.modulator.gates[1],sm_ctrl.inverter.modulator.gates[2],sm_ctrl.inverter.modulator.gates[3],sm_ctrl.inverter.modulator.gates[4],sm_ctrl.inverter.modulator.gates[5],sm_ctrl.inverter.modulator.gates[6],sm_ctrl.inverter.modulator.sigdel_t[1],sm_ctrl.inverter.modulator.sigdel_t[2],sm_ctrl.inverter.modulator.sigdel_t[3],sm_ctrl.inverter.modulator.t0[1],sm_ctrl.inverter.modulator.t0[2],sm_ctrl.inverter.modulator.t0[3],system.initime) * Number of discrete states: 12 (sm_ctrl.inverter.modulator.t0[3],sm_ctrl.inverter.modulator.sigdel_t[3],sm_ctrl.inverter.modulator.gates[5],sm_ctrl.inverter.modulator.gates[6],sm_ctrl.inverter.modulator.t0[2],sm_ctrl.inverter.modulator.sigdel_t[2],sm_ctrl.inverter.modulator.gates[3],sm_ctrl.inverter.modulator.gates[4],sm_ctrl.inverter.modulator.t0[1],sm_ctrl.inverter.modulator.sigdel_t[1],sm_ctrl.inverter.modulator.gates[1],sm_ctrl.inverter.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (88): * Single equations (assignments): 73 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 13 * 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): 1 system {(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.0005582/0.06635, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created initialization part: time 0.001635/0.06798, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created event and clocks part: time 2.21e-05/0.068, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created simulation system equations: time 0.0003837/0.06839, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009648/0.06935, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002584/0.07194, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002877/0.07222, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: alias equations: time 0.0003469/0.07257, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005068/0.07308, allocations: 0 / 0, free: 0 / 0 Notification: Performance of SimCode: time 3.444e-05/0.07311, allocations: 0 / 0, free: 0 / 0 Notification: Performance of Templates: time 0.003986/0.0771, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 898] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrl_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Drives.SM_ctrl.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.062688284087926]