Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.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) 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(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Vtr|Vqs",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Vtr|Vqs",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00134/0.00134, allocations: 111.6 kB / 17.29 MB, free: 6.207 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.001354/0.001354, allocations: 197.3 kB / 18.21 MB, free: 5.281 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.423/1.423, allocations: 222.9 MB / 241.9 MB, free: 15.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001037/0.001038, allocations: 52.67 kB / 300.8 MB, free: 6.188 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1093, allocations: 49.45 MB / 350.3 MB, free: 4.73 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.2486/0.3579, allocations: 29.84 MB / 380.1 MB, free: 9.996 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02021/0.3782, allocations: 8.528 MB / 388.6 MB, free: 7.137 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008579/0.3868, allocations: 180.1 kB / 388.8 MB, free: 7.102 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01284/0.3997, allocations: 4.582 MB / 393.4 MB, free: 4.508 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01188/0.4116, allocations: 2.715 MB / 396.1 MB, free: 2.816 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005655/0.4173, allocations: 1.465 MB / 397.6 MB, free: 1.836 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01408/0.4314, allocations: 8.77 MB / 406.3 MB, free: 12.71 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02324/0.4547, allocations: 14.37 MB / 420.7 MB, free: 15.92 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007579/0.4623, allocations: 4.191 MB / 424.9 MB, free: 11.71 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008129/0.4705, allocations: 4.776 MB / 429.7 MB, free: 6.922 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003478/0.474, allocations: 1.164 MB / 430.8 MB, free: 5.758 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005933/0.4799, allocations: 1.523 MB / 432.4 MB, free: 4.234 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004174/0.4842, allocations: 2.423 MB / 434.8 MB, free: 1.805 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01057/0.4947, allocations: 4.661 MB / 439.4 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01723/0.512, allocations: 13.67 MB / 453.1 MB, free: 15.42 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.895e-06/0.5121, allocations: 4 kB / 453.1 MB, free: 15.42 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.5121, allocations: 0 / 453.1 MB, free: 15.42 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004929/0.5126, allocations: 0 / 453.1 MB, free: 15.42 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1994 * Number of variables: 1994 Notification: Performance of Generate backend data structure: time 0.02995/0.5425, allocations: 9.775 MB / 462.9 MB, free: 5.547 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.47e-05/0.5426, allocations: 8.031 kB / 462.9 MB, free: 5.539 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02878/0.5714, allocations: 5.251 MB / 468.2 MB, free: 280 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01045/0.5819, allocations: 4.953 MB / 473.1 MB, free: 11.24 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004988/0.5824, allocations: 0.53 MB / 473.6 MB, free: 10.71 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002839/0.5852, allocations: 0.7146 MB / 474.4 MB, free: 9.992 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02842/0.6137, allocations: 11.32 MB / 485.7 MB, free: 14.59 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002495/0.614, allocations: 15.81 kB / 485.7 MB, free: 14.57 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001619/0.6156, allocations: 304 kB / 486 MB, free: 14.28 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004441/0.616, allocations: 442.9 kB / 486.4 MB, free: 13.84 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02354/0.6396, allocations: 10.82 MB / 497.2 MB, free: 3.012 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06856/0.7082, allocations: 37.99 MB / 0.5227 GB, free: 11.89 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2207/0.929, allocations: 28.11 MB / 0.5501 GB, free: 118 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004898/0.9339, allocations: 2.648 MB / 0.5527 GB, free: 118 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01299/0.947, allocations: 7.915 MB / 0.5605 GB, free: 114.6 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.69e-05/0.947, allocations: 57.73 kB / 0.5605 GB, free: 114.5 MB / 446.1 MB Notification: Performance of pre-optimization done (n=217): time 3.918e-06/0.947, allocations: 1.469 kB / 0.5605 GB, free: 114.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=233): time 0.01896/0.966, allocations: 10.37 MB / 0.5706 GB, free: 110.1 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001618/0.9676, allocations: 2.002 MB / 0.5726 GB, free: 108.3 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00504/0.9727, allocations: 3.817 MB / 0.5763 GB, free: 106.8 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003699/0.9731, allocations: 65.64 kB / 0.5764 GB, free: 106.8 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001748/0.9749, allocations: 3.561 MB / 0.5799 GB, free: 104.1 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006845/0.9755, allocations: 0.819 MB / 0.5807 GB, free: 103.4 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001277/0.9768, allocations: 0.9575 MB / 0.5816 GB, free: 102.9 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.903e-05/0.9769, allocations: 304.3 kB / 0.5819 GB, free: 102.7 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002147/0.979, allocations: 1.889 MB / 0.5837 GB, free: 101.9 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003098/0.9821, allocations: 4.397 MB / 0.588 GB, free: 97.82 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005703/0.9878, allocations: 6.784 MB / 0.5946 GB, free: 92.36 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.343e-05/0.9879, allocations: 31.06 kB / 0.5947 GB, free: 92.36 MB / 446.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.009456/0.9974, allocations: 6.979 MB / 0.6015 GB, free: 89.43 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.671e-05/0.9975, allocations: 40.19 kB / 0.6015 GB, free: 89.39 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001187/0.9976, allocations: 97.67 kB / 0.6016 GB, free: 89.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001748/0.9994, allocations: 0.7345 MB / 0.6023 GB, free: 88.73 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003251/1.003, allocations: 1.125 MB / 0.6034 GB, free: 87.75 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005638/1.008, allocations: 5.644 MB / 0.6089 GB, free: 82.02 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004594/1.013, allocations: 313.5 kB / 0.6092 GB, free: 81.71 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006581/1.014, allocations: 276 kB / 0.6095 GB, free: 81.45 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 393 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (590): * Single equations (assignments): 587 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,32,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004049/1.018, allocations: 2.522 MB / 0.612 GB, free: 78.91 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008015/1.018, allocations: 387.2 kB / 0.6123 GB, free: 78.53 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005869/1.024, allocations: 4.274 MB / 0.6165 GB, free: 74.24 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.59e-05/1.024, allocations: 24 kB / 0.6165 GB, free: 74.21 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.043e-05/1.024, allocations: 4.875 kB / 0.6165 GB, free: 74.21 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.043e-05/1.024, allocations: 11.95 kB / 0.6166 GB, free: 74.2 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01871/1.043, allocations: 14.29 MB / 0.6305 GB, free: 59.72 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.568e-05/1.043, allocations: 15.78 kB / 0.6305 GB, free: 59.71 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001645/1.045, allocations: 479.3 kB / 0.631 GB, free: 59.24 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001767/1.047, allocations: 0.6969 MB / 0.6317 GB, free: 58.53 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001675/1.047, allocations: 67.98 kB / 0.6317 GB, free: 58.46 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007107/1.054, allocations: 7.499 MB / 0.6391 GB, free: 50.69 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001295/1.055, allocations: 1.965 MB / 0.641 GB, free: 48.57 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008229/1.063, allocations: 6.733 MB / 0.6475 GB, free: 41.56 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001831/1.065, allocations: 0.7928 MB / 0.6483 GB, free: 40.74 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006281/1.066, allocations: 63.98 kB / 0.6484 GB, free: 40.68 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001729/1.068, allocations: 163.9 kB / 0.6485 GB, free: 40.52 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004113/1.068, allocations: 225.4 kB / 0.6488 GB, free: 40.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001533/1.068, allocations: 83.98 kB / 0.6488 GB, free: 40.21 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003222/1.072, allocations: 2.513 MB / 0.6513 GB, free: 37.72 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/1.072, allocations: 0 / 0.6513 GB, free: 37.72 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004941/1.076, allocations: 1.29 MB / 0.6525 GB, free: 36.43 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 1 ($STATESET1.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (241): * Single equations (assignments): 238 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,32,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005185/1.077, allocations: 233.1 kB / 0.6528 GB, free: 36.2 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0117/1.089, allocations: 7.005 MB / 0.6596 GB, free: 29.18 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.312e-05/1.089, allocations: 8.312 kB / 0.6596 GB, free: 29.17 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003161/1.092, allocations: 2.415 MB / 0.662 GB, free: 26.72 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00501/1.097, allocations: 0.9866 MB / 0.6629 GB, free: 25.77 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02003/1.117, allocations: 15.33 MB / 0.6779 GB, free: 10.25 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003337/1.12, allocations: 4.378 MB / 0.6822 GB, free: 5.832 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00125/1.122, allocations: 331.4 kB / 0.6825 GB, free: 5.512 MB / 446.1 MB Notification: Performance of SimCode: time 1.022e-06/1.122, allocations: 0 / 0.6825 GB, free: 5.512 MB / 446.1 MB Notification: Performance of Templates: time 0.5474/1.669, allocations: 200.6 MB / 0.8784 GB, free: 148.3 MB / 478.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_OpenCircuit/SMPM_OpenCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches