Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.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.0008372/0.0008372, allocations: 76.36 kB / 20.67 MB, free: 3.895 MB / 18.57 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.0009441/0.0009441, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.8832/0.8832, allocations: 177 MB / 204.1 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] 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.Analog.Examples.IdealTriacCircuit,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.593e-06/1.593e-06, allocations: 0 / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.76e-05/1.92e-05, allocations: 3.266 kB / 324.5 MB, free: 15.88 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.003042/0.003061, allocations: 2.752 MB / 327.3 MB, free: 13.11 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00121/0.004271, allocations: 0.7712 MB / 328.1 MB, free: 12.33 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001396/0.00441, allocations: 7.938 kB / 328.1 MB, free: 12.32 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000136/0.004546, allocations: 51.5 kB / 328.1 MB, free: 12.27 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001608/0.004707, allocations: 107 kB / 328.2 MB, free: 12.17 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003535/0.00506, allocations: 119.7 kB / 328.3 MB, free: 12.05 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003756/0.005436, allocations: 437.9 kB / 328.8 MB, free: 11.62 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000176/0.005612, allocations: 79.69 kB / 328.8 MB, free: 11.54 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000306/0.005918, allocations: 243.5 kB / 329.1 MB, free: 11.3 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001424/0.00606, allocations: 115.7 kB / 329.2 MB, free: 11.19 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.936e-05/0.0061, allocations: 44 kB / 329.2 MB, free: 11.15 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.239e-05/0.006162, allocations: 39.94 kB / 329.3 MB, free: 11.11 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.496e-05/0.006207, allocations: 75.73 kB / 329.3 MB, free: 11.04 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.369e-05/0.006301, allocations: 127.7 kB / 329.5 MB, free: 10.91 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003718/0.006673, allocations: 458.5 kB / 329.9 MB, free: 10.46 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.006678, allocations: 0 / 329.9 MB, free: 10.46 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.006679, allocations: 0 / 329.9 MB, free: 10.46 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.603e-06/0.006686, allocations: 0 / 329.9 MB, free: 10.46 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.0007246/0.00741, allocations: 0.545 MB / 330.5 MB, free: 9.887 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.98e-05/0.00745, allocations: 11.98 kB / 330.5 MB, free: 9.875 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.495e-05/0.007505, allocations: 62.72 kB / 330.5 MB, free: 9.805 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001244/0.007629, allocations: 48.69 kB / 330.6 MB, free: 9.758 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003253/0.007955, allocations: 234.3 kB / 330.8 MB, free: 9.5 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.925e-05/0.007974, allocations: 16.88 kB / 330.8 MB, free: 9.484 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.485e-05/0.008009, allocations: 24.38 kB / 330.9 MB, free: 9.461 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003915/0.0084, allocations: 335.6 kB / 331.2 MB, free: 9.109 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.04e-05/0.008411, allocations: 8.125 kB / 331.2 MB, free: 9.102 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.096e-05/0.008432, allocations: 12.12 kB / 331.2 MB, free: 9.09 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.256e-06/0.00844, allocations: 8 kB / 331.2 MB, free: 9.082 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002674/0.008707, allocations: 201.9 kB / 331.4 MB, free: 8.883 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001215/0.009922, allocations: 1.028 MB / 332.4 MB, free: 7.781 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004027/0.01032, allocations: 202.6 kB / 332.6 MB, free: 7.574 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000225/0.01055, allocations: 128.8 kB / 332.8 MB, free: 7.445 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.077e-05/0.01057, allocations: 4 kB / 332.8 MB, free: 7.441 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004601/0.01103, allocations: 214.2 kB / 333 MB, free: 7.195 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 2.936e-06/0.01103, allocations: 3.984 kB / 333 MB, free: 7.191 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.0009252/0.01196, allocations: 452.9 kB / 333.4 MB, free: 6.742 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.98e-05/0.01203, allocations: 136.5 kB / 333.5 MB, free: 6.578 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001953/0.01222, allocations: 245.9 kB / 333.8 MB, free: 6.328 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.306e-05/0.01225, allocations: 33.7 kB / 333.8 MB, free: 6.289 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001022/0.01235, allocations: 180.6 kB / 334 MB, free: 6.109 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.625e-05/0.0124, allocations: 75.38 kB / 334.1 MB, free: 6.035 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.679e-05/0.01246, allocations: 45.7 kB / 334.1 MB, free: 5.984 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.024e-05/0.01255, allocations: 338.8 kB / 334.4 MB, free: 5.645 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001033/0.01266, allocations: 71.97 kB / 334.5 MB, free: 5.574 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001418/0.0128, allocations: 172.5 kB / 334.7 MB, free: 5.375 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002049/0.013, allocations: 159.4 kB / 334.8 MB, free: 5.207 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.448e-06/0.01301, allocations: 8 kB / 334.8 MB, free: 5.199 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003483/0.01336, allocations: 290.3 kB / 335.1 MB, free: 4.906 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.962e-05/0.01337, allocations: 11.94 kB / 335.1 MB, free: 4.895 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.01338, allocations: 0 / 335.1 MB, free: 4.895 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002805/0.01366, allocations: 92.75 kB / 335.2 MB, free: 4.801 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.691e-05/0.01375, allocations: 27.92 kB / 335.3 MB, free: 4.773 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001708/0.01546, allocations: 2.012 MB / 337.3 MB, free: 2.641 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001217/0.01558, allocations: 39.84 kB / 337.3 MB, free: 2.602 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.14e-05/0.01559, allocations: 4 kB / 337.3 MB, free: 2.598 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,idealTriac.fire1,idealTriac.idealThyristor1.off,$PRE.idealTriac.idealThyristor1.off,idealTriac.idealThyristor.off,$PRE.idealTriac.idealThyristor.off,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0001241/0.01571, allocations: 149.8 kB / 337.5 MB, free: 2.441 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.724e-05/0.01575, allocations: 23.92 kB / 337.5 MB, free: 2.418 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5e-05/0.0158, allocations: 38.27 kB / 337.5 MB, free: 2.383 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.858e-06/0.0158, allocations: 3.938 kB / 337.5 MB, free: 2.379 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.01581, allocations: 4 kB / 337.5 MB, free: 2.375 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.007e-06/0.01581, allocations: 0 / 337.5 MB, free: 2.375 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007118/0.01653, allocations: 0.6939 MB / 338.2 MB, free: 1.625 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.315e-06/0.01653, allocations: 4 kB / 338.2 MB, free: 1.621 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.038e-05/0.0166, allocations: 19.92 kB / 338.2 MB, free: 1.602 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001835/0.01678, allocations: 96.83 kB / 338.3 MB, free: 1.504 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.368e-05/0.0168, allocations: 11.97 kB / 338.4 MB, free: 1.492 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001686/0.01848, allocations: 2.008 MB / 340.4 MB, free: 15.37 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.01848, allocations: 0 / 340.4 MB, free: 15.37 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004351/0.01892, allocations: 446.8 kB / 340.8 MB, free: 14.91 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.15e-05/0.01899, allocations: 55.95 kB / 340.9 MB, free: 14.86 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.35e-05/0.01901, allocations: 15.81 kB / 340.9 MB, free: 14.84 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000112/0.01912, allocations: 15.98 kB / 340.9 MB, free: 14.83 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.905e-05/0.01922, allocations: 35.94 kB / 340.9 MB, free: 14.79 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.043e-05/0.01923, allocations: 4 kB / 340.9 MB, free: 14.79 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001261/0.01936, allocations: 181.2 kB / 341.1 MB, free: 14.62 MB / 314.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01936, allocations: 0 / 341.1 MB, free: 14.62 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003662/0.01973, allocations: 91.95 kB / 341.2 MB, free: 14.53 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (idealTriac.capacitor.v) * Number of discrete variables: 5 ($whenCondition1,booleanPulse.pulseStart,idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off,idealTriac.fire1) * Number of discrete states: 2 (idealTriac.idealThyristor1.off,idealTriac.idealThyristor.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007486/0.02048, allocations: 0.987 MB / 342.2 MB, free: 13.51 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005159/0.02099, allocations: 354.3 kB / 342.5 MB, free: 13.15 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.486e-06/0.02099, allocations: 256 / 342.5 MB, free: 13.15 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002727/0.02127, allocations: 258.4 kB / 342.8 MB, free: 12.88 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003196/0.02159, allocations: 56.72 kB / 342.8 MB, free: 12.83 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002677/0.02426, allocations: 2.746 MB / 345.6 MB, free: 9.965 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001329/0.0244, allocations: 159.7 kB / 345.7 MB, free: 9.793 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 9.024e-05/0.02449, allocations: 22.27 kB / 345.8 MB, free: 9.77 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.771e-05/0.02458, allocations: 88.47 kB / 345.8 MB, free: 9.684 MB / 314.7 MB Notification: Performance of SimCode: time 1.042e-06/0.02459, allocations: 0 / 345.8 MB, free: 9.684 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02497/0.04956, allocations: 8.3 MB / 354.1 MB, free: 1.535 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.577/7.627, allocations: 64 / 354.1 MB, free: 1.535 MB / 314.7 MB " [Timeout remaining time 652] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_IdealTriacCircuit_fmu --startTime=0 --stopTime=2 --stepSize=0.00039604 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_IdealTriacCircuit.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/IdealTriacCircuit/IdealTriacCircuit.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.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: 9.348798056133091]