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.001805/0.001805, allocations: 112.7 kB / 20.43 MB, free: 1.453 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.002556/0.002556, allocations: 214 kB / 23.74 MB, free: 4.66 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.45/1.45, allocations: 230.5 MB / 257.4 MB, free: 8.008 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.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 0.002001/0.002001, allocations: 63.89 kB / 377.8 MB, free: 3.012 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2562/0.2582, allocations: 53.41 MB / 431.2 MB, free: 6.68 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.00417/0.2624, allocations: 2.971 MB / 434.2 MB, free: 3.699 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001558/0.264, allocations: 0.8062 MB / 435 MB, free: 2.887 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001529/0.2641, allocations: 4 kB / 435 MB, free: 2.883 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001611/0.2643, allocations: 51.5 kB / 435 MB, free: 2.832 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001976/0.2645, allocations: 111 kB / 435.1 MB, free: 2.723 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003258/0.2648, allocations: 115.8 kB / 435.2 MB, free: 2.609 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004464/0.2652, allocations: 410.3 kB / 435.6 MB, free: 2.207 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002027/0.2654, allocations: 99.61 kB / 435.7 MB, free: 2.105 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002498/0.2657, allocations: 159.4 kB / 435.9 MB, free: 1.949 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002238/0.2659, allocations: 163.3 kB / 436.1 MB, free: 1.789 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.104e-05/0.266, allocations: 36 kB / 436.1 MB, free: 1.754 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.77e-05/0.2661, allocations: 48 kB / 436.1 MB, free: 1.707 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7e-05/0.2661, allocations: 75.7 kB / 436.2 MB, free: 1.633 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001646/0.2663, allocations: 179.2 kB / 436.4 MB, free: 1.457 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004895/0.2668, allocations: 450.6 kB / 436.8 MB, free: 1.02 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.2668, allocations: 0 / 436.8 MB, free: 1.02 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.2668, allocations: 0 / 436.8 MB, free: 1.02 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.005e-05/0.2668, allocations: 4 kB / 436.8 MB, free: 1.016 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: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.001041/0.2678, allocations: 0.545 MB / 437.4 MB, free: 452 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.871e-05/0.2679, allocations: 12.03 kB / 437.4 MB, free: 440 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.393e-05/0.268, allocations: 62.72 kB / 437.4 MB, free: 368 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000166/0.2681, allocations: 48.69 kB / 437.5 MB, free: 320 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003956/0.2685, allocations: 223.1 kB / 437.7 MB, free: 68 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.056e-05/0.2685, allocations: 24.88 kB / 437.7 MB, free: 44 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.714e-05/0.2686, allocations: 24.38 kB / 437.8 MB, free: 20 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005331/0.2691, allocations: 287.7 kB / 438 MB, free: 15.72 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.343e-05/0.2691, allocations: 3.938 kB / 438 MB, free: 15.72 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.736e-05/0.2692, allocations: 8 kB / 438.1 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.098e-05/0.2692, allocations: 8 kB / 438.1 MB, free: 15.7 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004047/0.2696, allocations: 205.9 kB / 438.3 MB, free: 15.5 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00178/0.2714, allocations: 1.113 MB / 439.4 MB, free: 14.32 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005754/0.2719, allocations: 194.6 kB / 439.6 MB, free: 14.12 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002982/0.2722, allocations: 132.4 kB / 439.7 MB, free: 13.99 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.274e-05/0.2723, allocations: 4 kB / 439.7 MB, free: 13.98 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003068/0.2726, allocations: 170.7 kB / 439.9 MB, free: 13.79 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.533e-06/0.2726, allocations: 0 / 439.9 MB, free: 13.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.001346/0.2739, allocations: 445.9 kB / 440.3 MB, free: 13.35 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.486e-05/0.274, allocations: 132.5 kB / 440.4 MB, free: 13.19 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002584/0.2743, allocations: 245.1 kB / 440.7 MB, free: 12.94 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.5e-05/0.2743, allocations: 29.73 kB / 440.7 MB, free: 12.9 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001285/0.2744, allocations: 184.5 kB / 440.9 MB, free: 12.72 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.653e-05/0.2745, allocations: 75.41 kB / 441 MB, free: 12.64 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000112/0.2746, allocations: 49.66 kB / 441 MB, free: 12.59 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001864/0.2748, allocations: 334.8 kB / 441.3 MB, free: 12.25 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001508/0.2749, allocations: 71.97 kB / 441.4 MB, free: 12.18 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002004/0.2751, allocations: 121.9 kB / 441.5 MB, free: 12.05 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003227/0.2755, allocations: 175.9 kB / 441.7 MB, free: 11.86 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.2755, allocations: 0 / 441.7 MB, free: 11.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005007/0.276, allocations: 286.2 kB / 442 MB, free: 11.57 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.478e-05/0.276, allocations: 7.938 kB / 442 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-06/0.276, allocations: 4 kB / 442 MB, free: 11.56 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003339/0.2763, allocations: 96.73 kB / 442.1 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001364/0.2765, allocations: 27.92 kB / 442.1 MB, free: 11.44 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002469/0.2789, allocations: 2.043 MB / 444.1 MB, free: 9.277 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002024/0.2791, allocations: 35.86 kB / 444.2 MB, free: 9.242 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.626e-05/0.2791, allocations: 4 kB / 444.2 MB, free: 9.238 MB / 350.1 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.0001795/0.2793, allocations: 149.8 kB / 444.3 MB, free: 9.082 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.587e-05/0.2794, allocations: 27.8 kB / 444.4 MB, free: 9.055 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.051e-05/0.2794, allocations: 38.33 kB / 444.4 MB, free: 9.02 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.2794, allocations: 0 / 444.4 MB, free: 9.02 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.2794, allocations: 4 kB / 444.4 MB, free: 9.016 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.027e-06/0.2794, allocations: 0 / 444.4 MB, free: 9.016 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009928/0.2804, allocations: 0.7397 MB / 445.1 MB, free: 8.223 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.2804, allocations: 0 / 445.1 MB, free: 8.223 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001029/0.2805, allocations: 19.98 kB / 445.2 MB, free: 8.203 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002524/0.2808, allocations: 92.83 kB / 445.2 MB, free: 8.109 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.321e-05/0.2808, allocations: 15.92 kB / 445.3 MB, free: 8.094 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002281/0.2831, allocations: 2.032 MB / 447.3 MB, free: 5.945 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.2831, allocations: 4.031 kB / 447.3 MB, free: 5.941 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007383/0.2838, allocations: 456.6 kB / 447.7 MB, free: 5.477 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001004/0.2839, allocations: 47.81 kB / 447.8 MB, free: 5.43 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.578e-05/0.284, allocations: 4 kB / 447.8 MB, free: 5.426 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001905/0.2842, allocations: 15.98 kB / 447.8 MB, free: 5.41 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001065/0.2843, allocations: 40 kB / 447.9 MB, free: 5.371 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.38e-05/0.2843, allocations: 4 kB / 447.9 MB, free: 5.367 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001817/0.2845, allocations: 180.5 kB / 448 MB, free: 5.195 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2845, allocations: 0 / 448 MB, free: 5.195 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000453/0.2849, allocations: 91.83 kB / 448.1 MB, free: 5.105 MB / 350.1 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.001075/0.286, allocations: 0.9828 MB / 449.1 MB, free: 4.094 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007179/0.2867, allocations: 358.3 kB / 449.5 MB, free: 3.73 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.2867, allocations: 0 / 449.5 MB, free: 3.73 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004445/0.2871, allocations: 254.7 kB / 449.7 MB, free: 3.469 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004318/0.2876, allocations: 62.98 kB / 449.8 MB, free: 3.41 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003814/0.2914, allocations: 2.779 MB / 452.5 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004649/0.2919, allocations: 0.7639 MB / 453.3 MB, free: 15.73 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.176e-05/0.292, allocations: 14.3 kB / 453.3 MB, free: 15.72 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001352/0.2921, allocations: 91.39 kB / 453.4 MB, free: 15.63 MB / 366.1 MB Notification: Performance of SimCode: time 6.02e-07/0.2921, allocations: 0 / 453.4 MB, free: 15.63 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04298/0.3351, allocations: 7.846 MB / 461.3 MB, free: 7.926 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.47/12.8, allocations: 4 kB / 461.3 MB, free: 7.922 MB / 366.1 MB " [Timeout remaining time 647] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/IdealTriacCircuit/IdealTriacCircuit.csv","/var/lib/jenkins1/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: 15.331131160026416]