Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|asm.motor.airgap.tau|asm.motor.slip|bdCond.heat.ports.1..Q_flow|bdCond.heat.ports.2..Q_flow|speed.flange.tau",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic") translateModel(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|asm.motor.airgap.tau|asm.motor.slip|bdCond.heat.ports.1..Q_flow|bdCond.heat.ports.2..Q_flow|speed.flange.tau",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001294/0.001294, allocations: 188.9 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.543/1.543, allocations: 205.1 MB / 223.1 MB, free: 8.473 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009583/0.0009583, allocations: 95.92 kB / 270.5 MB, free: 8.434 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2006/0.2006, allocations: 38.01 MB / 355.8 MB, free: 2.926 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001026/0.001026, allocations: 55.92 kB / 421.9 MB, free: 37.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.369/0.3701, allocations: 55.24 MB / 477.1 MB, free: 9.914 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic): time 0.008998/0.3791, allocations: 6.069 MB / 483.2 MB, free: 5.625 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.008017/0.3872, allocations: 4.414 MB / 487.6 MB, free: 2.59 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001063/0.3883, allocations: 32.38 kB / 487.6 MB, free: 2.578 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01066/0.3989, allocations: 4.706 MB / 492.3 MB, free: 1.359 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001247/0.4002, allocations: 320.8 kB / 492.6 MB, free: 1.176 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006415/0.4008, allocations: 185.5 kB / 492.8 MB, free: 1.07 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.003148/0.404, allocations: 2.075 MB / 494.9 MB, free: 492 kB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007704/0.4048, allocations: 0.4993 MB / 495.4 MB, free: 200 kB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005423/0.4054, allocations: 312.1 kB / 495.7 MB, free: 36 kB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006582/0.406, allocations: 424.8 kB / 496.1 MB, free: 15.8 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 7.156e-05/0.4061, allocations: 32.06 kB / 496.1 MB, free: 15.8 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001992/0.4063, allocations: 49.42 kB / 496.2 MB, free: 15.79 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002691/0.4066, allocations: 230.6 kB / 496.4 MB, free: 15.64 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000353/0.407, allocations: 302.5 kB / 496.7 MB, free: 15.45 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007947/0.4078, allocations: 0.7788 MB / 497.5 MB, free: 14.89 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.4078, allocations: 1.188 kB / 497.5 MB, free: 14.89 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.273e-06/0.4078, allocations: 0 / 497.5 MB, free: 14.89 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.718e-06/0.4078, allocations: 0 / 497.5 MB, free: 14.89 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 121 * Number of variables: 121 Notification: Performance of Generate backend data structure: time 0.001732/0.4095, allocations: 0.8659 MB / 498.4 MB, free: 14.17 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.297e-05/0.4096, allocations: 13.02 kB / 498.4 MB, free: 14.16 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003699/0.41, allocations: 74.47 kB / 498.4 MB, free: 14.12 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001006/0.411, allocations: 0.5462 MB / 499 MB, free: 13.66 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.92e-05/0.411, allocations: 39.98 kB / 499 MB, free: 13.64 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.495e-05/0.4111, allocations: 41.66 kB / 499.1 MB, free: 13.63 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009714/0.4121, allocations: 0.6368 MB / 499.7 MB, free: 13.2 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.264e-05/0.4121, allocations: 2.031 kB / 499.7 MB, free: 13.2 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.929e-05/0.4122, allocations: 16.69 kB / 499.7 MB, free: 13.19 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001362/0.4123, allocations: 49.62 kB / 499.8 MB, free: 13.17 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007719/0.4131, allocations: 462.6 kB / 0.4885 GB, free: 12.95 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003373/0.4165, allocations: 2.525 MB / 0.491 GB, free: 10.8 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005213/0.4171, allocations: 281.2 kB / 0.4912 GB, free: 10.63 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002422/0.4173, allocations: 144.2 kB / 0.4914 GB, free: 10.55 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.955e-05/0.4173, allocations: 7.172 kB / 0.4914 GB, free: 10.54 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.551e-05/0.4174, allocations: 41.06 kB / 0.4914 GB, free: 10.5 MB / 330.7 MB Notification: Performance of pre-optimization done (n=30): time 2.194e-06/0.4174, allocations: 0 / 0.4914 GB, free: 10.5 MB / 330.7 MB Notification: Performance of matching and sorting (n=32): time 0.003197/0.4206, allocations: 1.533 MB / 0.4929 GB, free: 9.352 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.983e-05/0.4207, allocations: 84.61 kB / 0.493 GB, free: 9.254 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004939/0.4212, allocations: 413.1 kB / 0.4934 GB, free: 9.004 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.366e-05/0.4212, allocations: 31.08 kB / 0.4934 GB, free: 8.969 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002333/0.4215, allocations: 304.8 kB / 0.4937 GB, free: 8.699 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001105/0.4216, allocations: 112 kB / 0.4938 GB, free: 8.602 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001639/0.4218, allocations: 81.53 kB / 0.4939 GB, free: 8.547 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001529/0.4219, allocations: 361.7 kB / 0.4942 GB, free: 8.195 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002183/0.4221, allocations: 132.2 kB / 0.4944 GB, free: 8.133 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003269/0.4225, allocations: 280.7 kB / 0.4946 GB, free: 7.875 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005795/0.4231, allocations: 457.5 kB / 0.4951 GB, free: 7.523 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.4231, allocations: 1.375 kB / 0.4951 GB, free: 7.523 MB / 330.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001111/0.4242, allocations: 0.6777 MB / 0.4957 GB, free: 7.09 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.416e-05/0.4242, allocations: 6.719 kB / 0.4957 GB, free: 7.09 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.054e-05/0.4242, allocations: 5.344 kB / 0.4957 GB, free: 7.09 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004704/0.4247, allocations: 146.8 kB / 0.4959 GB, free: 7.012 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003069/0.425, allocations: 73.91 kB / 0.4959 GB, free: 6.996 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003922/0.429, allocations: 3.4 MB / 0.4993 GB, free: 3.824 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003796/0.4294, allocations: 15.06 kB / 0.4993 GB, free: 3.816 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.062e-05/0.4294, allocations: 23.89 kB / 0.4993 GB, free: 3.809 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * 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 (42): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * 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): 2 systems {(2,6,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004865/0.4299, allocations: 237.9 kB / 0.4995 GB, free: 3.613 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.425e-05/0.43, allocations: 45.28 kB / 0.4996 GB, free: 3.582 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001008/0.431, allocations: 0.5753 MB / 0.5001 GB, free: 2.977 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.553e-06/0.4311, allocations: 7.938 kB / 0.5001 GB, free: 2.969 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0008129/0.4319, allocations: 486.3 kB / 0.5006 GB, free: 2.457 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.086e-06/0.4319, allocations: 4 kB / 0.5006 GB, free: 2.453 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001772/0.4337, allocations: 1.001 MB / 0.5016 GB, free: 1.383 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.502e-06/0.4337, allocations: 4 kB / 0.5016 GB, free: 1.379 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001973/0.4339, allocations: 35.97 kB / 0.5016 GB, free: 1.344 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003003/0.4342, allocations: 93 kB / 0.5017 GB, free: 1.25 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.491e-05/0.4342, allocations: 4 kB / 0.5017 GB, free: 1.246 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002022/0.4363, allocations: 1.859 MB / 0.5035 GB, free: 15.25 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.028e-06/0.4363, allocations: 3.938 kB / 0.5035 GB, free: 15.25 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002382/0.4387, allocations: 1.985 MB / 0.5055 GB, free: 13.11 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001717/0.4389, allocations: 136.6 kB / 0.5056 GB, free: 12.96 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.49e-05/0.4389, allocations: 8.062 kB / 0.5056 GB, free: 12.95 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001917/0.4391, allocations: 11.94 kB / 0.5056 GB, free: 12.94 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.472e-05/0.4392, allocations: 27.95 kB / 0.5057 GB, free: 12.91 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.392e-05/0.4392, allocations: 8 kB / 0.5057 GB, free: 12.9 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003787/0.4396, allocations: 299.1 kB / 0.5059 GB, free: 12.61 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.394e-06/0.4396, allocations: 0 / 0.5059 GB, free: 12.61 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008446/0.4405, allocations: 155.9 kB / 0.5061 GB, free: 12.46 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (asm.rotor.phi,asm.rotor.w) * 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 (22): * Single equations (assignments): 20 * 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): 1 system {(2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001695/0.4406, allocations: 107.2 kB / 0.5062 GB, free: 12.34 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001071/0.4417, allocations: 0.6073 MB / 0.5068 GB, free: 11.71 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.397e-06/0.4417, allocations: 4.125 kB / 0.5068 GB, free: 11.71 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004316/0.4422, allocations: 298.5 kB / 0.5071 GB, free: 11.4 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006557/0.4428, allocations: 110.5 kB / 0.5072 GB, free: 11.29 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002337/0.4452, allocations: 1.572 MB / 0.5087 GB, free: 9.676 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005216/0.4457, allocations: 0.9245 MB / 0.5096 GB, free: 8.727 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002796/0.446, allocations: 80.31 kB / 0.5097 GB, free: 8.645 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.62e-05/0.4461, allocations: 35.42 kB / 0.5097 GB, free: 8.609 MB / 346.7 MB Notification: Performance of SimCode: time 4.61e-07/0.4461, allocations: 0 / 0.5097 GB, free: 8.609 MB / 346.7 MB Notification: Performance of Templates: time 0.01028/0.4564, allocations: 5.661 MB / 0.5153 GB, free: 2.965 MB / 346.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches