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.001036/0.001036, allocations: 93.7 kB / 16.3 MB, free: 5.996 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.001227/0.001227, allocations: 180.5 kB / 17.19 MB, free: 5.906 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.235/1.235, allocations: 223.2 MB / 241.1 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2774/0.2774, allocations: 38.07 MB / 330.3 MB, free: 14.21 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002863/0.0002862, allocations: 8 kB / 400 MB, free: 9.277 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2375/0.2378, allocations: 59.15 MB / 459.1 MB, free: 30.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic): time 0.005025/0.2429, allocations: 5.145 MB / 464.3 MB, free: 26.7 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004944/0.2478, allocations: 3.925 MB / 468.2 MB, free: 23.99 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000436/0.2483, allocations: 29.78 kB / 468.2 MB, free: 23.98 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004143/0.2525, allocations: 1.658 MB / 469.9 MB, free: 23.41 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006897/0.2532, allocations: 259.9 kB / 470.1 MB, free: 23.24 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005225/0.2537, allocations: 192.2 kB / 470.3 MB, free: 23.15 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004779/0.2542, allocations: 469 kB / 470.8 MB, free: 22.92 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007828/0.255, allocations: 0.6405 MB / 471.4 MB, free: 22.55 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002676/0.2553, allocations: 248.2 kB / 471.7 MB, free: 22.45 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003315/0.2556, allocations: 250.2 kB / 471.9 MB, free: 22.36 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.126e-05/0.2557, allocations: 24.88 kB / 471.9 MB, free: 22.36 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001233/0.2558, allocations: 38.64 kB / 472 MB, free: 22.35 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001748/0.256, allocations: 199.2 kB / 472.2 MB, free: 22.29 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001031/0.2561, allocations: 139.5 kB / 472.3 MB, free: 22.2 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006479/0.2567, allocations: 0.6319 MB / 472.9 MB, free: 22.05 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.174e-06/0.2567, allocations: 0 / 472.9 MB, free: 22.05 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.2567, allocations: 0.5625 kB / 472.9 MB, free: 22.05 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.434e-06/0.2568, allocations: 0 / 472.9 MB, free: 22.05 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.00116/0.2579, allocations: 0.7608 MB / 473.7 MB, free: 21.47 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.893e-05/0.258, allocations: 9.469 kB / 473.7 MB, free: 21.47 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00024/0.2582, allocations: 67.41 kB / 473.8 MB, free: 21.44 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008243/0.259, allocations: 0.5316 MB / 474.3 MB, free: 21.08 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.988e-05/0.2591, allocations: 34.86 kB / 474.3 MB, free: 21.06 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.436e-05/0.2592, allocations: 51.05 kB / 474.4 MB, free: 21.04 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008266/0.26, allocations: 0.6203 MB / 475 MB, free: 20.69 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.118e-05/0.26, allocations: 6.156 kB / 475 MB, free: 20.69 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.291e-05/0.2601, allocations: 24.55 kB / 475 MB, free: 20.67 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000115/0.2602, allocations: 53.8 kB / 475.1 MB, free: 20.65 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006084/0.2608, allocations: 463.6 kB / 475.5 MB, free: 20.42 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00227/0.2631, allocations: 2.522 MB / 478.1 MB, free: 18.28 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003646/0.2635, allocations: 275.6 kB / 478.3 MB, free: 18.11 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.328e-05/0.2635, allocations: 8.078 kB / 478.3 MB, free: 18.11 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.136e-05/0.2635, allocations: 41.06 kB / 478.4 MB, free: 18.06 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.603e-06/0.2635, allocations: 3.938 kB / 478.4 MB, free: 18.06 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.002317/0.2659, allocations: 1.528 MB / 479.9 MB, free: 16.92 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.999e-05/0.2659, allocations: 84.55 kB / 480 MB, free: 16.82 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003572/0.2663, allocations: 410 kB / 480.4 MB, free: 16.57 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.271e-05/0.2663, allocations: 32.2 kB / 480.4 MB, free: 16.53 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000124/0.2664, allocations: 304.5 kB / 480.7 MB, free: 16.26 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.112e-05/0.2665, allocations: 113.1 kB / 480.8 MB, free: 16.16 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.542e-05/0.2665, allocations: 11.97 kB / 480.8 MB, free: 16.15 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.517e-05/0.2666, allocations: 360.9 kB / 481.2 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001575/0.2668, allocations: 130.4 kB / 481.3 MB, free: 15.74 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002257/0.267, allocations: 272.1 kB / 481.6 MB, free: 15.48 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002301/0.2672, allocations: 181.9 kB / 481.8 MB, free: 15.39 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.2672, allocations: 4.969 kB / 481.8 MB, free: 15.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0008755/0.2681, allocations: 0.6676 MB / 482.4 MB, free: 14.96 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.928e-05/0.2681, allocations: 7.844 kB / 482.4 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.528e-06/0.2682, allocations: 5.062 kB / 482.4 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003848/0.2685, allocations: 149.7 kB / 482.6 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002704/0.2688, allocations: 76.41 kB / 482.7 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002551/0.2714, allocations: 3.461 MB / 486.1 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002766/0.2717, allocations: 10.72 kB / 486.1 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.791e-05/0.2717, allocations: 19.12 kB / 486.2 MB, free: 11.65 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 6,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000312/0.272, allocations: 239.4 kB / 486.4 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.823e-05/0.2721, allocations: 40.25 kB / 486.4 MB, free: 11.44 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008613/0.273, allocations: 0.5748 MB / 487 MB, free: 11.03 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.051e-06/0.273, allocations: 8.141 kB / 487 MB, free: 11.03 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0005978/0.2736, allocations: 491.4 kB / 487.5 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.2736, allocations: 0 / 487.5 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001132/0.2748, allocations: 0.9987 MB / 488.5 MB, free: 9.648 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.2748, allocations: 4 kB / 488.5 MB, free: 9.645 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001698/0.275, allocations: 35.94 kB / 488.5 MB, free: 9.609 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002187/0.2752, allocations: 104.9 kB / 488.6 MB, free: 9.504 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.804e-05/0.2752, allocations: 7.984 kB / 488.6 MB, free: 9.496 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001288/0.2765, allocations: 1.898 MB / 490.5 MB, free: 7.465 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.2765, allocations: 4.031 kB / 490.5 MB, free: 7.461 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006862/0.2772, allocations: 0.7013 MB / 491.2 MB, free: 6.703 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001198/0.2773, allocations: 136.6 kB / 491.4 MB, free: 6.551 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.703e-05/0.2774, allocations: 7.984 kB / 491.4 MB, free: 6.543 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000173/0.2776, allocations: 8 kB / 491.4 MB, free: 6.535 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.876e-05/0.2776, allocations: 27.86 kB / 491.4 MB, free: 6.508 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.897e-05/0.2776, allocations: 12 kB / 491.4 MB, free: 6.496 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002307/0.2779, allocations: 295.1 kB / 491.7 MB, free: 6.207 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2779, allocations: 3.938 kB / 491.7 MB, free: 6.203 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000476/0.2784, allocations: 124.1 kB / 491.8 MB, free: 6.082 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.902e-05/0.2785, allocations: 103.2 kB / 491.9 MB, free: 5.969 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007369/0.2792, allocations: 0.6071 MB / 492.6 MB, free: 5.336 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.2792, allocations: 4 kB / 492.6 MB, free: 5.332 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003376/0.2796, allocations: 291.5 kB / 492.8 MB, free: 5.035 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004643/0.28, allocations: 104 kB / 492.9 MB, free: 4.938 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001441/0.2815, allocations: 1.361 MB / 494.3 MB, free: 3.535 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003167/0.2818, allocations: 0.9438 MB / 495.2 MB, free: 2.566 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002249/0.2821, allocations: 76.33 kB / 495.3 MB, free: 2.492 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.024e-05/0.2821, allocations: 31.44 kB / 495.4 MB, free: 2.461 MB / 350.1 MB Notification: Performance of SimCode: time 3e-07/0.2821, allocations: 0 / 495.4 MB, free: 2.461 MB / 350.1 MB Notification: Performance of Templates: time 0.008719/0.2909, allocations: 5.197 MB / 0.4888 GB, free: 13.32 MB / 366.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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