Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001271/0.001271, allocations: 109.5 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002038/0.002038, allocations: 183.9 kB / 23.72 MB, free: 4.699 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.452/1.452, allocations: 225.6 MB / 252.5 MB, free: 13.04 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001604/0.001604, allocations: 47.92 kB / 370.4 MB, free: 9.844 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2574/0.259, allocations: 52.18 MB / 422.6 MB, free: 14.58 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.004196/0.2632, allocations: 2.954 MB / 425.6 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001194/0.2644, allocations: 0.7323 MB / 426.3 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001227/0.2645, allocations: 11.88 kB / 426.3 MB, free: 10.87 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001579/0.2647, allocations: 51.5 kB / 426.4 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001812/0.2649, allocations: 99.12 kB / 426.5 MB, free: 10.72 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002809/0.2651, allocations: 99.83 kB / 426.6 MB, free: 10.62 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004395/0.2656, allocations: 414.3 kB / 427 MB, free: 10.21 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002109/0.2658, allocations: 91.67 kB / 427.1 MB, free: 10.12 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002107/0.266, allocations: 163.4 kB / 427.2 MB, free: 9.961 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002283/0.2662, allocations: 163.3 kB / 427.4 MB, free: 9.801 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.238e-05/0.2663, allocations: 36 kB / 427.4 MB, free: 9.766 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.473e-05/0.2663, allocations: 36 kB / 427.5 MB, free: 9.73 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.631e-05/0.2664, allocations: 79.73 kB / 427.5 MB, free: 9.652 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001665/0.2666, allocations: 175.2 kB / 427.7 MB, free: 9.48 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004503/0.267, allocations: 434.7 kB / 428.1 MB, free: 9.059 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.267, allocations: 0 / 428.1 MB, free: 9.059 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.267, allocations: 0 / 428.1 MB, free: 9.059 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.833e-06/0.267, allocations: 0 / 428.1 MB, free: 9.059 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.00101/0.2681, allocations: 0.5567 MB / 428.7 MB, free: 8.469 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.652e-05/0.2681, allocations: 8.031 kB / 428.7 MB, free: 8.461 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.394e-05/0.2682, allocations: 62.72 kB / 428.8 MB, free: 8.391 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.621e-05/0.2682, allocations: 36.75 kB / 428.8 MB, free: 8.355 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003796/0.2686, allocations: 229.9 kB / 429 MB, free: 8.105 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.119e-05/0.2686, allocations: 16.88 kB / 429 MB, free: 8.09 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.163e-05/0.2687, allocations: 28.36 kB / 429.1 MB, free: 8.062 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005082/0.2692, allocations: 291.7 kB / 429.3 MB, free: 7.762 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.283e-05/0.2692, allocations: 4 kB / 429.3 MB, free: 7.758 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.811e-05/0.2692, allocations: 8 kB / 429.4 MB, free: 7.75 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.528e-06/0.2692, allocations: 8 kB / 429.4 MB, free: 7.742 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000398/0.2696, allocations: 205.8 kB / 429.6 MB, free: 7.543 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001727/0.2714, allocations: 1.109 MB / 430.7 MB, free: 6.355 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004955/0.2719, allocations: 198.6 kB / 430.9 MB, free: 6.152 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002848/0.2721, allocations: 128.8 kB / 431 MB, free: 6.023 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.064e-05/0.2722, allocations: 0 / 431 MB, free: 6.023 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002941/0.2725, allocations: 164.2 kB / 431.2 MB, free: 5.84 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.263e-06/0.2725, allocations: 0 / 431.2 MB, free: 5.84 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.001363/0.2738, allocations: 443.9 kB / 431.6 MB, free: 5.398 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001001/0.2739, allocations: 136.5 kB / 431.7 MB, free: 5.234 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003064/0.2742, allocations: 245 kB / 432 MB, free: 4.984 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.035e-05/0.2743, allocations: 33.7 kB / 432 MB, free: 4.945 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001288/0.2744, allocations: 168.6 kB / 432.2 MB, free: 4.777 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.133e-05/0.2745, allocations: 79.36 kB / 432.2 MB, free: 4.699 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.815e-05/0.2745, allocations: 49.7 kB / 432.3 MB, free: 4.645 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001555/0.2747, allocations: 330.8 kB / 432.6 MB, free: 4.312 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001554/0.2749, allocations: 71.92 kB / 432.7 MB, free: 4.242 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002022/0.2751, allocations: 133 kB / 432.8 MB, free: 4.094 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000302/0.2754, allocations: 167.3 kB / 433 MB, free: 3.918 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.709e-06/0.2754, allocations: 4 kB / 433 MB, free: 3.914 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005029/0.2759, allocations: 282.2 kB / 433.2 MB, free: 3.629 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.573e-05/0.2759, allocations: 8 kB / 433.3 MB, free: 3.621 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.2759, allocations: 0 / 433.3 MB, free: 3.621 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003402/0.2762, allocations: 100.7 kB / 433.4 MB, free: 3.52 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000139/0.2764, allocations: 31.92 kB / 433.4 MB, free: 3.488 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002415/0.2788, allocations: 2.039 MB / 435.4 MB, free: 1.332 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002099/0.279, allocations: 31.83 kB / 435.5 MB, free: 1.301 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.601e-05/0.279, allocations: 4 kB / 435.5 MB, free: 1.297 MB / 334.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.0001668/0.2792, allocations: 147.9 kB / 435.6 MB, free: 1.145 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.538e-05/0.2792, allocations: 35.86 kB / 435.6 MB, free: 1.109 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.465e-05/0.2793, allocations: 30.27 kB / 435.7 MB, free: 1.082 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.399e-06/0.2793, allocations: 4 kB / 435.7 MB, free: 1.078 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.894e-06/0.2793, allocations: 0 / 435.7 MB, free: 1.078 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.2793, allocations: 0 / 435.7 MB, free: 1.078 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001009/0.2803, allocations: 0.7434 MB / 436.4 MB, free: 288 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.2803, allocations: 0 / 436.4 MB, free: 288 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001085/0.2804, allocations: 16.03 kB / 436.4 MB, free: 272 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002658/0.2807, allocations: 88.91 kB / 436.5 MB, free: 180 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.833e-05/0.2807, allocations: 7.938 kB / 436.5 MB, free: 172 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002354/0.2831, allocations: 2.04 MB / 438.6 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.2831, allocations: 0 / 438.6 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007061/0.2838, allocations: 465.6 kB / 439 MB, free: 13.54 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001112/0.2839, allocations: 47.72 kB / 439.1 MB, free: 13.49 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.355e-05/0.2839, allocations: 8 kB / 439.1 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002037/0.2841, allocations: 16.05 kB / 439.1 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001001/0.2842, allocations: 35.94 kB / 439.1 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.394e-05/0.2842, allocations: 4 kB / 439.1 MB, free: 13.43 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001978/0.2844, allocations: 180.5 kB / 439.3 MB, free: 13.25 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2844, allocations: 96 / 439.3 MB, free: 13.25 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004982/0.2849, allocations: 91.83 kB / 439.4 MB, free: 13.16 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.001087/0.286, allocations: 0.9977 MB / 440.4 MB, free: 12.14 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007149/0.2867, allocations: 350.2 kB / 440.7 MB, free: 11.78 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.2867, allocations: 4.25 kB / 440.7 MB, free: 11.78 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004231/0.2872, allocations: 254.5 kB / 441 MB, free: 11.52 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004265/0.2876, allocations: 59.77 kB / 441 MB, free: 11.46 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003979/0.2916, allocations: 2.762 MB / 443.8 MB, free: 8.602 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004131/0.292, allocations: 0.7635 MB / 444.6 MB, free: 7.812 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001047/0.2921, allocations: 26.28 kB / 444.6 MB, free: 7.785 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000126/0.2922, allocations: 83.41 kB / 444.7 MB, free: 7.703 MB / 350.1 MB Notification: Performance of SimCode: time 7.01e-07/0.2922, allocations: 0 / 444.7 MB, free: 7.703 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04252/0.3347, allocations: 7.797 MB / 452.5 MB, free: 88 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.51/12.84, allocations: 10.5 kB / 452.5 MB, free: 80 kB / 350.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_IdealTriacCircuit_fmu --startTime=0 --stopTime=2 --stepSize=0.00039604 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_IdealTriacCircuit.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/IdealTriacCircuit/IdealTriacCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.341560730012134]