Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001311/0.001311, allocations: 111.1 kB / 20.44 MB, free: 1.352 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001432/0.001432, allocations: 218 kB / 23.73 MB, free: 4.531 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.448/1.448, allocations: 230.5 MB / 257.4 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] 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.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001949/0.001949, allocations: 67.89 kB / 377.8 MB, free: 2.82 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2614/0.2633, allocations: 53.42 MB / 431.2 MB, free: 6.453 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.03374/0.297, allocations: 26.62 MB / 457.8 MB, free: 11.71 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02034/0.3174, allocations: 8.561 MB / 466.4 MB, free: 3.133 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007239/0.3246, allocations: 222.9 kB / 466.6 MB, free: 2.914 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01467/0.3393, allocations: 4.645 MB / 471.2 MB, free: 14.25 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01204/0.3513, allocations: 3.053 MB / 474.3 MB, free: 11.19 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00577/0.3571, allocations: 1.597 MB / 475.9 MB, free: 9.598 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01384/0.371, allocations: 8.855 MB / 484.7 MB, free: 0.7227 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01478/0.3857, allocations: 9.087 MB / 493.8 MB, free: 7.535 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006733/0.3925, allocations: 4.347 MB / 498.2 MB, free: 3.176 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008183/0.4006, allocations: 4.624 MB / 0.491 GB, free: 14.54 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003124/0.4038, allocations: 1.164 MB / 0.4921 GB, free: 13.37 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005133/0.4089, allocations: 1.531 MB / 0.4936 GB, free: 11.84 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003856/0.4128, allocations: 2.404 MB / 0.496 GB, free: 9.43 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009038/0.4218, allocations: 3.661 MB / 0.4995 GB, free: 5.754 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02766/0.4494, allocations: 15.94 MB / 0.5151 GB, free: 5.766 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.141e-06/0.4495, allocations: 0 / 0.5151 GB, free: 5.766 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.4495, allocations: 4 kB / 0.5151 GB, free: 5.762 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0005583/0.45, allocations: 0 / 0.5151 GB, free: 5.762 MB / 430.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.0321/0.4821, allocations: 9.88 MB / 0.5248 GB, free: 11.79 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.068e-05/0.4822, allocations: 19.92 kB / 0.5248 GB, free: 11.77 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003747/0.4859, allocations: 1.145 MB / 0.5259 GB, free: 10.62 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03059/0.5165, allocations: 5.228 MB / 0.531 GB, free: 5.379 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01318/0.5297, allocations: 5.113 MB / 0.536 GB, free: 180 kB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.2373/0.767, allocations: 0.5253 MB / 0.5365 GB, free: 92.5 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004602/0.7716, allocations: 0.7089 MB / 0.5372 GB, free: 92.5 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03578/0.8074, allocations: 11.58 MB / 0.5485 GB, free: 88.16 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004457/0.8078, allocations: 16.66 kB / 0.5485 GB, free: 88.16 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002665/0.8105, allocations: 298.6 kB / 0.5488 GB, free: 87.94 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004251/0.8109, allocations: 446.7 kB / 0.5492 GB, free: 87.89 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02238/0.8333, allocations: 10.82 MB / 0.5598 GB, free: 79.13 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06329/0.8966, allocations: 33.75 MB / 0.5928 GB, free: 45.3 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01217/0.9087, allocations: 7.441 MB / 0.6 GB, free: 39.07 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003649/0.9124, allocations: 2.432 MB / 0.6024 GB, free: 36.63 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01489/0.9273, allocations: 6.951 MB / 0.6092 GB, free: 29.84 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.546e-05/0.9273, allocations: 60.56 kB / 0.6093 GB, free: 29.77 MB / 446.1 MB Notification: Performance of pre-optimization done (n=217): time 4.729e-06/0.9273, allocations: 0 / 0.6093 GB, free: 29.77 MB / 446.1 MB Notification: Performance of matching and sorting (n=233): time 0.01837/0.9457, allocations: 10.32 MB / 0.6193 GB, free: 19.78 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001726/0.9474, allocations: 1.89 MB / 0.6212 GB, free: 17.75 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006576/0.954, allocations: 3.987 MB / 0.6251 GB, free: 13.84 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003191/0.9543, allocations: 69.7 kB / 0.6251 GB, free: 13.77 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001746/0.9561, allocations: 3.687 MB / 0.6287 GB, free: 10.07 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007716/0.9568, allocations: 0.8665 MB / 0.6296 GB, free: 9.219 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001489/0.9583, allocations: 0.9653 MB / 0.6305 GB, free: 8.242 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.888e-05/0.9584, allocations: 305.1 kB / 0.6308 GB, free: 7.941 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00245/0.9608, allocations: 1.895 MB / 0.6327 GB, free: 6.039 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003906/0.9647, allocations: 4.45 MB / 0.637 GB, free: 352 kB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01014/0.9749, allocations: 6.802 MB / 0.6437 GB, free: 8.332 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001254/0.975, allocations: 24 kB / 0.6437 GB, free: 8.309 MB / 462.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.01437/0.9894, allocations: 7.001 MB / 0.6505 GB, free: 1.289 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001106/0.9895, allocations: 44 kB / 0.6506 GB, free: 1.246 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001866/0.9897, allocations: 84 kB / 0.6506 GB, free: 1.164 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00228/0.9919, allocations: 0.7411 MB / 0.6514 GB, free: 424 kB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004022/0.996, allocations: 1.119 MB / 0.6525 GB, free: 15.29 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008674/1.005, allocations: 5.44 MB / 0.6578 GB, free: 9.738 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00427/1.009, allocations: 319.4 kB / 0.6581 GB, free: 9.426 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007985/1.01, allocations: 279.9 kB / 0.6583 GB, free: 9.152 MB / 478.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.005843/1.016, allocations: 2.522 MB / 0.6608 GB, free: 6.617 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001347/1.017, allocations: 401.5 kB / 0.6612 GB, free: 6.223 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009741/1.027, allocations: 4.255 MB / 0.6653 GB, free: 1.934 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.125e-05/1.027, allocations: 24 kB / 0.6654 GB, free: 1.91 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.553e-05/1.027, allocations: 8 kB / 0.6654 GB, free: 1.902 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.538e-05/1.027, allocations: 11.95 kB / 0.6654 GB, free: 1.891 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03368/1.06, allocations: 13.49 MB / 0.6786 GB, free: 4.195 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.659e-05/1.06, allocations: 12 kB / 0.6786 GB, free: 4.184 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002342/1.063, allocations: 484.2 kB / 0.679 GB, free: 3.711 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002427/1.065, allocations: 0.6935 MB / 0.6797 GB, free: 3.008 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005136/1.066, allocations: 75.91 kB / 0.6798 GB, free: 2.934 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01114/1.077, allocations: 7.175 MB / 0.6868 GB, free: 11.53 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002326/1.079, allocations: 1.841 MB / 0.6886 GB, free: 9.562 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01353/1.093, allocations: 6.763 MB / 0.6952 GB, free: 2.52 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002997/1.096, allocations: 0.7626 MB / 0.6959 GB, free: 1.754 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001622/1.097, allocations: 56 kB / 0.696 GB, free: 1.699 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003589/1.101, allocations: 171.8 kB / 0.6961 GB, free: 1.531 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008059/1.102, allocations: 233.3 kB / 0.6964 GB, free: 1.301 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003935/1.102, allocations: 95.97 kB / 0.6965 GB, free: 1.207 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0071/1.109, allocations: 2.521 MB / 0.6989 GB, free: 14.68 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.1e-07/1.109, allocations: 0 / 0.6989 GB, free: 14.68 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.007938/1.117, allocations: 1.297 MB / 0.7002 GB, free: 13.38 MB / 0.5137 GB 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.01611/1.133, allocations: 7.449 MB / 0.7075 GB, free: 5.648 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.01068/1.144, allocations: 4.815 MB / 0.7122 GB, free: 0.8203 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.589e-05/1.144, allocations: 4.688 kB / 0.7122 GB, free: 0.8164 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.005083/1.149, allocations: 2.177 MB / 0.7143 GB, free: 14.61 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006791/1.156, allocations: 1.003 MB / 0.7153 GB, free: 13.63 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3633/1.519, allocations: 46.23 MB / 0.7604 GB, free: 179.9 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005107/1.524, allocations: 4.024 MB / 0.7644 GB, free: 178.7 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004228/1.529, allocations: 1.367 MB / 0.7657 GB, free: 178.7 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003673/1.532, allocations: 2.559 MB / 0.7682 GB, free: 176.6 MB / 0.545 GB Notification: Performance of SimCode: time 1.193e-06/1.532, allocations: 0 / 0.7682 GB, free: 176.6 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1693/1.701, allocations: 108.1 MB / 0.8738 GB, free: 71.76 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.78/20.49, allocations: 3.938 kB / 0.8738 GB, free: 71.75 MB / 0.545 GB " [Timeout remaining time 639] (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit_fmu --startTime=0 --stopTime=0.1 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_OpenCircuit/SMPM_OpenCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 23.838417307008058]