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/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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) 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: 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00157/0.00157, allocations: 112.5 kB / 17.7 MB, free: 5.426 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.002169/0.002169, allocations: 183 kB / 18.62 MB, free: 4.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.532/1.532, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1767/0.1767, allocations: 38.04 MB / 330.5 MB, free: 8.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001353/0.001354, allocations: 60.62 kB / 400.3 MB, free: 33.35 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1674/0.1688, allocations: 58.06 MB / 458.3 MB, free: 7.32 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic): time 0.008621/0.1775, allocations: 5.233 MB / 463.6 MB, free: 2.059 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006925/0.1844, allocations: 3.976 MB / 467.5 MB, free: 14.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005594/0.185, allocations: 15.94 kB / 467.5 MB, free: 14.05 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0103/0.1953, allocations: 4.784 MB / 472.3 MB, free: 9.262 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001296/0.1967, allocations: 322.5 kB / 472.6 MB, free: 8.945 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007103/0.1974, allocations: 215.6 kB / 472.9 MB, free: 8.734 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002263/0.1997, allocations: 1.555 MB / 474.4 MB, free: 7.172 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009335/0.2006, allocations: 0.5924 MB / 475 MB, free: 6.574 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005583/0.2012, allocations: 362.7 kB / 475.4 MB, free: 6.219 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005883/0.2018, allocations: 410.4 kB / 475.8 MB, free: 5.816 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.375e-05/0.2019, allocations: 56 kB / 475.8 MB, free: 5.762 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001874/0.2021, allocations: 63.98 kB / 475.9 MB, free: 5.699 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002769/0.2024, allocations: 259.4 kB / 476.1 MB, free: 5.445 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003517/0.2028, allocations: 326.4 kB / 476.4 MB, free: 5.125 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00101/0.2038, allocations: 0.8061 MB / 477.3 MB, free: 4.316 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.214e-06/0.2038, allocations: 0 / 477.3 MB, free: 4.316 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.2038, allocations: 0 / 477.3 MB, free: 4.316 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.478e-05/0.2038, allocations: 3.938 kB / 477.3 MB, free: 4.312 MB / 350.1 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.001822/0.2057, allocations: 0.8707 MB / 478.1 MB, free: 3.391 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.408e-05/0.2057, allocations: 8.031 kB / 478.1 MB, free: 3.383 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003258/0.2061, allocations: 72.09 kB / 478.2 MB, free: 3.312 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00113/0.2072, allocations: 0.5646 MB / 478.8 MB, free: 2.707 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.954e-05/0.2072, allocations: 32.98 kB / 478.8 MB, free: 2.676 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.552e-05/0.2073, allocations: 44 kB / 478.8 MB, free: 2.633 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001036/0.2084, allocations: 0.6297 MB / 479.5 MB, free: 1.969 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.229e-05/0.2084, allocations: 7.938 kB / 479.5 MB, free: 1.961 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.928e-05/0.2085, allocations: 16 kB / 479.5 MB, free: 1.945 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001262/0.2086, allocations: 48.97 kB / 479.5 MB, free: 1.895 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007607/0.2094, allocations: 467.6 kB / 480 MB, free: 1.438 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003413/0.2128, allocations: 2.507 MB / 482.5 MB, free: 14.79 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004889/0.2133, allocations: 277.2 kB / 482.8 MB, free: 14.5 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000227/0.2136, allocations: 146.2 kB / 482.9 MB, free: 14.35 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.703e-05/0.2136, allocations: 4.5 kB / 482.9 MB, free: 14.35 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.382e-05/0.2136, allocations: 34.56 kB / 483 MB, free: 14.3 MB / 366.1 MB Notification: Performance of pre-optimization done (n=30): time 2.224e-06/0.2137, allocations: 0 / 483 MB, free: 14.3 MB / 366.1 MB Notification: Performance of matching and sorting (n=32): time 0.003194/0.2169, allocations: 1.542 MB / 484.5 MB, free: 12.64 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.874e-05/0.2169, allocations: 85.05 kB / 484.6 MB, free: 12.54 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005776/0.2175, allocations: 413.8 kB / 485 MB, free: 12.14 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.601e-05/0.2176, allocations: 33.7 kB / 485 MB, free: 12.1 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002929/0.2179, allocations: 303.5 kB / 485.3 MB, free: 11.8 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001241/0.218, allocations: 110.5 kB / 485.4 MB, free: 11.69 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001415/0.2182, allocations: 82.03 kB / 485.5 MB, free: 11.6 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002182/0.2184, allocations: 366.7 kB / 485.9 MB, free: 11.23 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002464/0.2186, allocations: 124.8 kB / 486 MB, free: 11.11 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003672/0.219, allocations: 278.3 kB / 486.3 MB, free: 10.77 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00064/0.2197, allocations: 461.6 kB / 486.7 MB, free: 10.26 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.2197, allocations: 0 / 486.7 MB, free: 10.26 MB / 366.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001136/0.2208, allocations: 0.6754 MB / 487.4 MB, free: 9.551 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.039e-05/0.2209, allocations: 8 kB / 487.4 MB, free: 9.543 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.588e-05/0.2209, allocations: 4.406 kB / 487.4 MB, free: 9.539 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005263/0.2214, allocations: 157.5 kB / 487.6 MB, free: 9.379 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003352/0.2218, allocations: 79.89 kB / 487.6 MB, free: 9.301 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00434/0.2261, allocations: 3.668 MB / 491.3 MB, free: 5.344 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000349/0.2265, allocations: 12 kB / 491.3 MB, free: 5.332 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.36e-05/0.2265, allocations: 23.92 kB / 491.3 MB, free: 5.309 MB / 366.1 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.0004723/0.227, allocations: 233.7 kB / 491.6 MB, free: 5.07 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000108/0.2271, allocations: 43.44 kB / 491.6 MB, free: 5.027 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001099/0.2282, allocations: 0.5711 MB / 492.2 MB, free: 4.426 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.306e-06/0.2282, allocations: 8.125 kB / 492.2 MB, free: 4.418 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0008084/0.2291, allocations: 490.2 kB / 492.7 MB, free: 3.902 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.576e-06/0.2291, allocations: 3.984 kB / 492.7 MB, free: 3.898 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001671/0.2308, allocations: 1.006 MB / 493.7 MB, free: 2.824 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.368e-06/0.2308, allocations: 0 / 493.7 MB, free: 2.824 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002188/0.231, allocations: 39.97 kB / 493.7 MB, free: 2.785 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000291/0.2313, allocations: 88.78 kB / 493.8 MB, free: 2.695 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.045e-05/0.2313, allocations: 12 kB / 493.8 MB, free: 2.684 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002202/0.2335, allocations: 2.024 MB / 495.8 MB, free: 0.5195 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.452e-06/0.2336, allocations: 7.922 kB / 495.8 MB, free: 0.5117 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00103/0.2346, allocations: 0.6507 MB / 496.5 MB, free: 15.83 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002305/0.2348, allocations: 132.6 kB / 496.6 MB, free: 15.68 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.063e-05/0.2349, allocations: 7.984 kB / 496.6 MB, free: 15.67 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001836/0.2351, allocations: 8 kB / 496.6 MB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.385e-05/0.2352, allocations: 27.91 kB / 496.7 MB, free: 15.64 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.668e-05/0.2352, allocations: 12 kB / 496.7 MB, free: 15.62 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003986/0.2356, allocations: 303.2 kB / 497 MB, free: 15.33 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.355e-06/0.2356, allocations: 0 / 497 MB, free: 15.33 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006411/0.2363, allocations: 123.9 kB / 497.1 MB, free: 15.21 MB / 382.1 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.0001887/0.2365, allocations: 105.4 kB / 497.2 MB, free: 15.1 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001145/0.2376, allocations: 0.6108 MB / 497.8 MB, free: 14.46 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.2376, allocations: 3.938 kB / 497.8 MB, free: 14.46 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004584/0.2381, allocations: 291.3 kB / 498.1 MB, free: 14.16 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006998/0.2388, allocations: 119.8 kB / 498.2 MB, free: 14.05 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002125/0.241, allocations: 1.118 MB / 499.3 MB, free: 12.89 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007049/0.2417, allocations: 0.9167 MB / 0.4885 GB, free: 11.95 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002505/0.2419, allocations: 80.31 kB / 0.4886 GB, free: 11.88 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.723e-05/0.242, allocations: 31.44 kB / 0.4886 GB, free: 11.85 MB / 382.1 MB Notification: Performance of SimCode: time 9.12e-07/0.242, allocations: 0 / 0.4886 GB, free: 11.85 MB / 382.1 MB Notification: Performance of Templates: time 0.01154/0.2536, allocations: 5.602 MB / 0.4941 GB, free: 6.301 MB / 382.1 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches