Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001639/0.001639, allocations: 103.7 kB / 17.63 MB, free: 5.52 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002046/0.002046, allocations: 204.6 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.341/1.341, allocations: 227.4 MB / 246.8 MB, free: 10.64 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0012/0.001201, allocations: 69.33 kB / 307.1 MB, free: 0.5664 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08249/0.0837, allocations: 50.53 MB / 357.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource): time 0.01239/0.09613, allocations: 11.91 MB / 369.5 MB, free: 2.055 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1402/0.2363, allocations: 4.04 MB / 373.5 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00128/0.2376, allocations: 77.84 kB / 373.6 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001752/0.2394, allocations: 0.886 MB / 374.5 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002104/0.2415, allocations: 0.9643 MB / 375.5 MB, free: 9.93 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009542/0.2425, allocations: 0.563 MB / 376 MB, free: 9.91 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002978/0.2455, allocations: 3.395 MB / 379.4 MB, free: 8.801 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002892/0.2484, allocations: 3.089 MB / 382.5 MB, free: 7.539 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001913/0.2503, allocations: 1.577 MB / 384.1 MB, free: 6.797 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002171/0.2525, allocations: 2.04 MB / 386.1 MB, free: 5.895 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005808/0.2531, allocations: 440.6 kB / 386.6 MB, free: 5.891 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009712/0.2541, allocations: 0.5424 MB / 387.1 MB, free: 5.863 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001028/0.2551, allocations: 1.262 MB / 388.4 MB, free: 5.203 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001568/0.2567, allocations: 1.941 MB / 390.3 MB, free: 3.918 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003702/0.2604, allocations: 5.599 MB / 395.9 MB, free: 408 kB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.2604, allocations: 0 / 395.9 MB, free: 408 kB / 302.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.2604, allocations: 5.281 kB / 395.9 MB, free: 404 kB / 302.1 MB Notification: Performance of Transformations before backend: time 7.195e-05/0.2605, allocations: 3.938 kB / 395.9 MB, free: 400 kB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 775 * Number of variables: 775 Notification: Performance of Generate backend data structure: time 0.006608/0.2671, allocations: 3.94 MB / 399.9 MB, free: 13.71 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.532e-05/0.2672, allocations: 15.41 kB / 399.9 MB, free: 13.71 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000458/0.2676, allocations: 420.9 kB / 400.3 MB, free: 13.4 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001004/0.2686, allocations: 423.1 kB / 400.7 MB, free: 13.19 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002889/0.2715, allocations: 2.067 MB / 402.8 MB, free: 11.77 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001726/0.2717, allocations: 227.1 kB / 403 MB, free: 11.66 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003784/0.2721, allocations: 302 kB / 403.3 MB, free: 11.43 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005349/0.2775, allocations: 3.85 MB / 407.1 MB, free: 7.508 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.244e-05/0.2775, allocations: 11.84 kB / 407.1 MB, free: 7.496 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002534/0.2778, allocations: 125.6 kB / 407.3 MB, free: 7.375 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001323/0.2779, allocations: 145.7 kB / 407.4 MB, free: 7.23 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00473/0.2827, allocations: 3.259 MB / 410.7 MB, free: 3.961 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01778/0.3005, allocations: 12.16 MB / 422.8 MB, free: 7.539 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002336/0.3028, allocations: 1.944 MB / 424.8 MB, free: 5.484 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001768/0.3046, allocations: 1.159 MB / 425.9 MB, free: 4.32 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002791/0.3049, allocations: 213.8 kB / 426.1 MB, free: 4.082 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.498e-05/0.305, allocations: 47.88 kB / 426.2 MB, free: 4.027 MB / 334.1 MB Notification: Performance of pre-optimization done (n=139): time 3.015e-06/0.305, allocations: 0 / 426.2 MB, free: 4.027 MB / 334.1 MB Notification: Performance of matching and sorting (n=155): time 0.01265/0.3176, allocations: 7.014 MB / 433.2 MB, free: 12.89 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.937e-05/0.3177, allocations: 68.72 kB / 433.3 MB, free: 12.8 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002841/0.3205, allocations: 2.036 MB / 435.3 MB, free: 10.73 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001019/0.3207, allocations: 57.7 kB / 435.4 MB, free: 10.67 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009037/0.3216, allocations: 1.458 MB / 436.8 MB, free: 9.199 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003797/0.322, allocations: 0.528 MB / 437.3 MB, free: 8.676 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005081/0.3225, allocations: 355.2 kB / 437.7 MB, free: 8.324 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.774e-05/0.3226, allocations: 305.1 kB / 438 MB, free: 8.023 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001296/0.3239, allocations: 0.8784 MB / 438.9 MB, free: 7.145 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001581/0.3255, allocations: 1.447 MB / 440.3 MB, free: 5.453 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003026/0.3285, allocations: 2.509 MB / 442.8 MB, free: 2.699 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.577e-06/0.3285, allocations: 4 kB / 442.8 MB, free: 2.695 MB / 350.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.004462/0.333, allocations: 3.006 MB / 445.8 MB, free: 15.65 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.26e-05/0.333, allocations: 12 kB / 445.8 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.565e-05/0.333, allocations: 20 kB / 445.9 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008145/0.3339, allocations: 398.3 kB / 446.3 MB, free: 15.22 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001578/0.3355, allocations: 475.2 kB / 446.7 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005428/0.3409, allocations: 6.694 MB / 453.4 MB, free: 7.648 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001471/0.3424, allocations: 139.6 kB / 453.5 MB, free: 7.512 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001419/0.3425, allocations: 88.05 kB / 453.6 MB, free: 7.426 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 81 * Number of states: 0 () * Number of discrete variables: 1 (sinCosEvaluation.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (228): * Single equations (assignments): 224 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 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): 3 systems {(2,9,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001409/0.3439, allocations: 0.9342 MB / 454.6 MB, free: 6.48 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004117/0.3444, allocations: 213.5 kB / 454.8 MB, free: 6.27 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004032/0.3484, allocations: 2.602 MB / 457.4 MB, free: 3.625 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.253e-05/0.3484, allocations: 16 kB / 457.4 MB, free: 3.609 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.779e-06/0.3484, allocations: 4 kB / 457.4 MB, free: 3.605 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.553e-05/0.3485, allocations: 7.969 kB / 457.4 MB, free: 3.598 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009012/0.3575, allocations: 5.846 MB / 463.3 MB, free: 13.64 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.153e-05/0.3575, allocations: 4 kB / 463.3 MB, free: 13.63 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00119/0.3587, allocations: 291.6 kB / 463.5 MB, free: 13.35 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009748/0.3597, allocations: 414.8 kB / 463.9 MB, free: 12.93 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001178/0.3598, allocations: 39.98 kB / 464 MB, free: 12.89 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006659/0.3665, allocations: 8.27 MB / 472.3 MB, free: 4.066 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.859e-06/0.3665, allocations: 4 kB / 472.3 MB, free: 4.062 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005677/0.3722, allocations: 3.833 MB / 476.1 MB, free: 140 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001272/0.3735, allocations: 486.3 kB / 476.6 MB, free: 15.64 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000591/0.3741, allocations: 43.98 kB / 476.6 MB, free: 15.6 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001336/0.3755, allocations: 95.83 kB / 476.7 MB, free: 15.5 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002287/0.3757, allocations: 109.1 kB / 476.8 MB, free: 15.4 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001013/0.3758, allocations: 44 kB / 476.9 MB, free: 15.36 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002388/0.3782, allocations: 1.394 MB / 478.2 MB, free: 13.94 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3782, allocations: 7.938 kB / 478.3 MB, free: 13.93 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002143/0.3804, allocations: 0.5664 MB / 478.8 MB, free: 13.37 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,dqCurrentController.PI_d.x,dqCurrentController.PI_q.x,sinCosEvaluation.der1.u) * 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 (146): * Single equations (assignments): 142 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,9,100.0%), (1,6,100.0%), (1,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005592/0.386, allocations: 4.484 MB / 483.3 MB, free: 8.777 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.005652/0.3916, allocations: 3.542 MB / 486.8 MB, free: 5.176 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.41e-06/0.3917, allocations: 9.875 kB / 486.9 MB, free: 5.168 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001919/0.3936, allocations: 1.569 MB / 488.4 MB, free: 3.551 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002682/0.3963, allocations: 0.5537 MB / 489 MB, free: 3.008 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03264/0.4289, allocations: 24.72 MB / 0.5017 GB, free: 8.156 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002098/0.4311, allocations: 2.263 MB / 0.5039 GB, free: 5.863 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001602/0.4327, allocations: 0.5377 MB / 0.5044 GB, free: 5.32 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001438/0.4341, allocations: 1.187 MB / 0.5056 GB, free: 4.133 MB / 430.1 MB Notification: Performance of SimCode: time 4.91e-07/0.4341, allocations: 0 / 0.5056 GB, free: 4.133 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.359/1.793, allocations: 53.32 MB / 0.5576 GB, free: 132.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.87/13.66, allocations: 12.44 kB / 0.5576 GB, free: 132.2 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_VoltageSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_VoltageSource.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches