Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001334/0.001334, allocations: 99.94 kB / 21.95 MB, free: 5.219 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001597/0.001597, allocations: 213.5 kB / 25.26 MB, free: 3.129 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.336/1.336, allocations: 207.7 MB / 236.1 MB, free: 9.793 MB / 190.1 MB " [Timeout remaining time 178] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_withLosses",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_withLosses",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001635/0.001635, allocations: 50.58 kB / 348 MB, free: 9.844 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2404/0.2421, allocations: 49.16 MB / 397.2 MB, free: 8.875 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses): time 0.009304/0.2514, allocations: 8.506 MB / 405.7 MB, free: 3.297 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006261/0.2576, allocations: 3.295 MB / 409 MB, free: 1 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001559/0.2592, allocations: 52.5 kB / 409 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001715/0.2609, allocations: 0.6573 MB / 409.7 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002378/0.2633, allocations: 0.8793 MB / 410.6 MB, free: 104 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001129/0.2644, allocations: 466.7 kB / 411 MB, free: 15.83 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00357/0.268, allocations: 2.673 MB / 413.7 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001532/0.2695, allocations: 1.067 MB / 414.8 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001866/0.2714, allocations: 1.214 MB / 416 MB, free: 13 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002214/0.2736, allocations: 1.542 MB / 417.5 MB, free: 11.97 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004061/0.274, allocations: 305.7 kB / 417.8 MB, free: 11.97 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001108/0.2751, allocations: 0.5546 MB / 418.4 MB, free: 11.81 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001113/0.2762, allocations: 1.046 MB / 419.4 MB, free: 11.06 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001622/0.2779, allocations: 1.193 MB / 420.6 MB, free: 10.27 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005133/0.283, allocations: 4.309 MB / 424.9 MB, free: 7.129 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.283, allocations: 0 / 424.9 MB, free: 7.129 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.283, allocations: 5.125 kB / 424.9 MB, free: 7.125 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001007/0.2831, allocations: 0 / 424.9 MB, free: 7.125 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 524 * Number of variables: 524 Notification: Performance of Generate backend data structure: time 0.006555/0.2896, allocations: 3.169 MB / 428.1 MB, free: 4.035 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.288e-05/0.2897, allocations: 11.98 kB / 428.1 MB, free: 4.023 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 9.476e-05/0.2898, allocations: 70.05 kB / 428.2 MB, free: 3.949 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005272/0.2903, allocations: 363.9 kB / 428.5 MB, free: 3.578 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000846/0.2912, allocations: 350.8 kB / 428.9 MB, free: 3.234 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002855/0.294, allocations: 1.568 MB / 430.4 MB, free: 1.629 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001368/0.2941, allocations: 160.2 kB / 430.6 MB, free: 1.469 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003608/0.2945, allocations: 227.9 kB / 430.8 MB, free: 1.246 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005116/0.2996, allocations: 2.868 MB / 433.7 MB, free: 14.27 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.61e-05/0.2997, allocations: 19.89 kB / 433.7 MB, free: 14.25 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002089/0.2999, allocations: 80 kB / 433.8 MB, free: 14.17 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001344/0.3, allocations: 100.1 kB / 433.9 MB, free: 14.07 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004181/0.3042, allocations: 2.331 MB / 436.2 MB, free: 11.72 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01346/0.3177, allocations: 7.544 MB / 443.8 MB, free: 3.961 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00286/0.3205, allocations: 1.386 MB / 445.1 MB, free: 2.562 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001978/0.3225, allocations: 1.099 MB / 446.2 MB, free: 1.461 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002086/0.3227, allocations: 53.28 kB / 446.3 MB, free: 1.406 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.964e-05/0.3228, allocations: 51.86 kB / 446.3 MB, free: 1.348 MB / 350.1 MB Notification: Performance of pre-optimization done (n=142): time 3.807e-06/0.3228, allocations: 0 / 446.3 MB, free: 1.348 MB / 350.1 MB Notification: Performance of matching and sorting (n=218): time 0.03696/0.3597, allocations: 13.87 MB / 460.2 MB, free: 3.402 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.371e-05/0.3598, allocations: 77.34 kB / 460.3 MB, free: 3.312 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003292/0.3631, allocations: 2.152 MB / 462.4 MB, free: 1.113 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001854/0.3633, allocations: 61.7 kB / 462.5 MB, free: 1.047 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009634/0.3642, allocations: 1.119 MB / 463.6 MB, free: 15.92 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007703/0.365, allocations: 0.7707 MB / 464.4 MB, free: 15.14 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006507/0.3657, allocations: 351.5 kB / 464.7 MB, free: 14.79 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001323/0.3658, allocations: 301.1 kB / 465 MB, free: 14.5 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002079/0.3679, allocations: 1.187 MB / 466.2 MB, free: 13.3 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002336/0.3702, allocations: 1.475 MB / 467.7 MB, free: 11.74 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004649/0.3748, allocations: 2.804 MB / 470.5 MB, free: 8.844 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.414e-06/0.3749, allocations: 0 / 470.5 MB, free: 8.844 MB / 382.1 MB Notification: Performance of matching and sorting (n=258) (initialization): time 0.007758/0.3826, allocations: 4.025 MB / 474.5 MB, free: 4.797 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.93e-05/0.3826, allocations: 8 kB / 474.5 MB, free: 4.789 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.913e-05/0.3827, allocations: 8 kB / 474.5 MB, free: 4.781 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00289/0.3856, allocations: 1.087 MB / 475.6 MB, free: 3.684 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001937/0.3875, allocations: 415.4 kB / 476 MB, free: 3.277 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01817/0.4057, allocations: 14.44 MB / 490.5 MB, free: 4.379 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001975/0.4076, allocations: 144 kB / 490.6 MB, free: 4.238 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001973/0.4078, allocations: 83.95 kB / 490.7 MB, free: 4.156 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * 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 (190): * Single equations (assignments): 182 * Array equations: 4 * 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 {(1,6,100.0%), (1,6,100.0%), (2,13,100.0%), (6,33,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001531/0.4094, allocations: 0.8098 MB / 491.5 MB, free: 3.336 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005152/0.4099, allocations: 238.4 kB / 491.7 MB, free: 3.102 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00714/0.417, allocations: 3.852 MB / 495.6 MB, free: 15.21 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.407e-05/0.4171, allocations: 27.94 kB / 495.6 MB, free: 15.19 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.53e-05/0.4171, allocations: 12 kB / 495.6 MB, free: 15.18 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.919e-05/0.4171, allocations: 15.89 kB / 495.6 MB, free: 15.16 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01318/0.4303, allocations: 6.802 MB / 0.4907 GB, free: 8.254 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.074e-05/0.4303, allocations: 4 kB / 0.4907 GB, free: 8.25 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001776/0.4321, allocations: 359.5 kB / 0.491 GB, free: 7.898 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002616/0.4347, allocations: 0.9612 MB / 0.4919 GB, free: 6.918 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001879/0.4349, allocations: 51.97 kB / 0.492 GB, free: 6.867 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0153/0.4502, allocations: 13.5 MB / 0.5052 GB, free: 8.801 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.548e-06/0.4502, allocations: 4.031 kB / 0.5052 GB, free: 8.797 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0104/0.4606, allocations: 5.621 MB / 0.5107 GB, free: 3.113 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001379/0.462, allocations: 494.2 kB / 0.5111 GB, free: 2.629 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00032/0.4623, allocations: 47.98 kB / 0.5112 GB, free: 2.582 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001361/0.4637, allocations: 131.8 kB / 0.5113 GB, free: 2.453 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004914/0.4641, allocations: 185.5 kB / 0.5115 GB, free: 2.27 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001826/0.4643, allocations: 72.08 kB / 0.5116 GB, free: 2.199 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002217/0.4665, allocations: 1.523 MB / 0.513 GB, free: 0.6523 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4665, allocations: 0 / 0.513 GB, free: 0.6523 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002309/0.4689, allocations: 0.6875 MB / 0.5137 GB, free: 15.96 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],loadInertia.phi,PI.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 (162): * Single equations (assignments): 153 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 5 * 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): 5 systems {(1,6,100.0%), (1,6,100.0%), (2,13,100.0%), (2,12,100.0%), (2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01161/0.4805, allocations: 6.689 MB / 0.5202 GB, free: 9.207 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006531/0.487, allocations: 3.72 MB / 0.5239 GB, free: 5.434 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.2e-06/0.487, allocations: 0 / 0.5239 GB, free: 5.434 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004025/0.491, allocations: 2.368 MB / 0.5262 GB, free: 2.996 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002468/0.4935, allocations: 494 kB / 0.5267 GB, free: 2.508 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04322/0.5367, allocations: 25.43 MB / 0.5515 GB, free: 8.672 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001732/0.5384, allocations: 1.508 MB / 0.553 GB, free: 7.133 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001431/0.5399, allocations: 0.4907 MB / 0.5535 GB, free: 6.641 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001585/0.5415, allocations: 1.097 MB / 0.5545 GB, free: 5.543 MB / 478.1 MB Notification: Performance of SimCode: time 1.032e-06/0.5415, allocations: 4 kB / 0.5545 GB, free: 5.539 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2793/0.8207, allocations: 66.52 MB / 0.6195 GB, free: 109.1 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 23.04/23.86, allocations: 8.062 kB / 0.6195 GB, free: 109 MB / 478.1 MB " [Timeout remaining time 636] (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_withLosses_fmu --startTime=0 --stopTime=5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_withLosses.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/AsynchronousInductionMachines/AIMC_withLosses/AIMC_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 651] Reference file matches [Calling sys.exit(0), Time elapsed: 45.40442683000583]