Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.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 3.2.3+maint.om/package.mo", uses=false) 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 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.SMR_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|currentController.y.1.|currentController.y.2.|currentController.y.3.",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|currentController.y.1.|currentController.y.2.|currentController.y.3.",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001022/0.001023, allocations: 110.6 kB / 18.4 MB, free: 4.656 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.0009786/0.0009787, allocations: 190 kB / 19.34 MB, free: 3.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.243/1.243, allocations: 205.1 MB / 225.2 MB, free: 12.2 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001202/0.001202, allocations: 51.92 kB / 329.3 MB, free: 3.25 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07031/0.07152, allocations: 46.62 MB / 375.9 MB, free: 4.516 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.1749/0.2464, allocations: 40.01 MB / 415.9 MB, free: 2.316 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0212/0.2676, allocations: 10.55 MB / 426.4 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00657/0.2742, allocations: 265.4 kB / 426.7 MB, free: 10.01 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01875/0.293, allocations: 8.609 MB / 435.3 MB, free: 3.473 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01106/0.3041, allocations: 3.709 MB / 439 MB, free: 264 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005981/0.3101, allocations: 2.398 MB / 441.4 MB, free: 13.86 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01457/0.3247, allocations: 13.42 MB / 454.8 MB, free: 392 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03265/0.3573, allocations: 25.36 MB / 480.2 MB, free: 6.871 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008295/0.3657, allocations: 7.071 MB / 487.3 MB, free: 15.78 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01071/0.3764, allocations: 8.051 MB / 495.3 MB, free: 7.703 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004117/0.3805, allocations: 1.996 MB / 497.3 MB, free: 5.707 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005951/0.3865, allocations: 2.375 MB / 499.7 MB, free: 3.332 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004245/0.3908, allocations: 4.158 MB / 0.492 GB, free: 15.16 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008519/0.3993, allocations: 7.82 MB / 0.4997 GB, free: 7.312 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02163/0.4209, allocations: 26.42 MB / 0.5255 GB, free: 12.81 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.421, allocations: 0 / 0.5255 GB, free: 12.81 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.421, allocations: 0 / 0.5255 GB, free: 12.81 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0003787/0.4213, allocations: 7.938 kB / 0.5255 GB, free: 12.8 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3512 * Number of variables: 3512 Notification: Performance of Generate backend data structure: time 0.03373/0.4551, allocations: 15.6 MB / 0.5407 GB, free: 13.09 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.4551, allocations: 8.031 kB / 0.5407 GB, free: 13.09 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04858/0.5037, allocations: 9.11 MB / 0.5496 GB, free: 3.949 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3227/0.8264, allocations: 7.51 MB / 0.5569 GB, free: 133.5 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006761/0.8271, allocations: 0.9443 MB / 0.5579 GB, free: 133.1 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003556/0.8307, allocations: 1.237 MB / 0.5591 GB, free: 132.7 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03783/0.8685, allocations: 20.15 MB / 0.5788 GB, free: 124.9 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003014/0.8689, allocations: 30.38 kB / 0.5788 GB, free: 124.9 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001938/0.8708, allocations: 0.5118 MB / 0.5793 GB, free: 124.5 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005896/0.8714, allocations: 0.7348 MB / 0.58 GB, free: 124.4 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03017/0.9016, allocations: 18.98 MB / 0.5985 GB, free: 112.4 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07574/0.9774, allocations: 62.64 MB / 0.6597 GB, free: 48.82 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03119/1.009, allocations: 56.98 MB / 0.7154 GB, free: 0.9727 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006572/1.015, allocations: 4.094 MB / 0.7193 GB, free: 12.86 MB / 0.4982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01941/1.035, allocations: 11.34 MB / 0.7304 GB, free: 1.5 MB / 0.4982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.363e-05/1.035, allocations: 69.31 kB / 0.7305 GB, free: 1.422 MB / 0.4982 GB Notification: Performance of pre-optimization done (n=349): time 6.181e-06/1.035, allocations: 0 / 0.7305 GB, free: 1.422 MB / 0.4982 GB Notification: Performance of matching and sorting (n=389): time 0.2044/1.239, allocations: 18.14 MB / 0.7482 GB, free: 165.7 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.778e-05/1.239, allocations: 91.81 kB / 0.7483 GB, free: 165.7 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006873/1.246, allocations: 5.461 MB / 0.7536 GB, free: 165.1 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0005665/1.247, allocations: 87.7 kB / 0.7537 GB, free: 165 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.002679/1.249, allocations: 5.887 MB / 0.7595 GB, free: 161.6 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001066/1.25, allocations: 1.373 MB / 0.7608 GB, free: 160.5 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001948/1.252, allocations: 1.507 MB / 0.7623 GB, free: 159.8 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 3.296e-05/1.252, allocations: 302.2 kB / 0.7626 GB, free: 159.5 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004171/1.257, allocations: 3.084 MB / 0.7656 GB, free: 158.4 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00522/1.262, allocations: 6.76 MB / 0.7722 GB, free: 152.4 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01028/1.272, allocations: 10.59 MB / 0.7825 GB, free: 144.2 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.911e-05/1.272, allocations: 35.5 kB / 0.7825 GB, free: 144.2 MB / 0.5138 GB Notification: Performance of matching and sorting (n=982) (initialization): time 0.0144/1.287, allocations: 10.79 MB / 0.7931 GB, free: 139.8 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 6.705e-05/1.287, allocations: 63.09 kB / 0.7931 GB, free: 139.7 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001153/1.287, allocations: 132.6 kB / 0.7933 GB, free: 139.7 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002252/1.289, allocations: 0.972 MB / 0.7942 GB, free: 139.5 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00572/1.295, allocations: 1.809 MB / 0.796 GB, free: 139.3 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009767/1.305, allocations: 10.25 MB / 0.806 GB, free: 132.3 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005283/1.31, allocations: 445.8 kB / 0.8064 GB, free: 132.2 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005632/1.31, allocations: 413.2 kB / 0.8068 GB, free: 132.1 MB / 0.5138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 572 * 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 (933): * Single equations (assignments): 928 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * 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): 3 systems {(1,1,100.0%), (1,1,100.0%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005528/1.316, allocations: 4.456 MB / 0.8112 GB, free: 129.9 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009282/1.317, allocations: 0.546 MB / 0.8117 GB, free: 129.6 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009326/1.326, allocations: 6.519 MB / 0.8181 GB, free: 125.8 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.315e-05/1.326, allocations: 25.19 kB / 0.8181 GB, free: 125.8 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.716e-06/1.326, allocations: 3.188 kB / 0.8181 GB, free: 125.8 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002194/1.329, allocations: 1.074 MB / 0.8191 GB, free: 124.8 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000709/1.329, allocations: 64 kB / 0.8192 GB, free: 124.8 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002276/1.332, allocations: 224.8 kB / 0.8194 GB, free: 124.6 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004435/1.332, allocations: 275.4 kB / 0.8197 GB, free: 124.5 MB / 0.5138 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.009467/1.341, allocations: 6.083 MB / 0.8256 GB, free: 119.4 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.009123/1.351, allocations: 8.049 MB / 0.8335 GB, free: 111.9 MB / 0.5138 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.002433/1.353, allocations: 2.422 MB / 0.8358 GB, free: 109.5 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.00431/1.357, allocations: 3.603 MB / 0.8394 GB, free: 105.9 MB / 0.5138 GB Notification: Performance of Backend: time 3.31e-07/1.357, allocations: 0 / 0.8394 GB, free: 105.9 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.009676/1.367, allocations: 6.279 MB / 0.8455 GB, free: 99.66 MB / 0.5138 GB Notification: Performance of SimCode: time 0.02921/1.396, allocations: 20.09 MB / 0.8651 GB, free: 79.54 MB / 0.5138 GB Notification: Performance of Templates: time 0.2996/1.696, allocations: 89.52 MB / 0.9525 GB, free: 162.9 MB / 0.5138 GB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_CurrentSource/SMR_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches