Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|idealTriac.capacitor.v|idealTriac.idealThyristor.off|idealTriac.idealThyristor1.off",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|idealTriac.capacitor.v|idealTriac.idealThyristor.off|idealTriac.idealThyristor1.off",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001464/0.001464, allocations: 198.8 kB / 18.07 MB, free: 3.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.24/1.24, allocations: 226.5 MB / 245.3 MB, free: 6.516 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007517/0.0007516, allocations: 102.7 kB / 297.4 MB, free: 6.691 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002135/0.0002135, allocations: 8 kB / 357.4 MB, free: 10.76 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1903/0.1905, allocations: 51.29 MB / 408.7 MB, free: 27.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1187/0.3093, allocations: 80.47 MB / 489.1 MB, free: 11.12 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001681/0.3095, allocations: 73.59 kB / 489.2 MB, free: 11.05 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01289/0.3224, allocations: 5.22 MB / 494.4 MB, free: 5.809 MB / 362.7 MB Notification: Performance of FrontEnd: time 5.119e-06/0.3225, allocations: 3.984 kB / 494.4 MB, free: 5.805 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.677e-05/0.3225, allocations: 8 kB / 494.4 MB, free: 5.797 MB / 362.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.0008329/0.3233, allocations: 0.571 MB / 495 MB, free: 5.176 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.848e-05/0.3234, allocations: 8.031 kB / 495 MB, free: 5.168 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001644/0.3235, allocations: 44.55 kB / 495.1 MB, free: 5.125 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003074/0.3239, allocations: 283.6 kB / 495.3 MB, free: 4.809 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.57e-05/0.3239, allocations: 20.94 kB / 495.4 MB, free: 4.789 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.25e-05/0.3239, allocations: 24.38 kB / 495.4 MB, free: 4.766 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00051/0.3245, allocations: 297 kB / 495.7 MB, free: 4.465 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.128e-05/0.3245, allocations: 192 / 495.7 MB, free: 4.465 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.181e-05/0.3245, allocations: 11.94 kB / 495.7 MB, free: 4.453 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.308e-06/0.3245, allocations: 8 kB / 495.7 MB, free: 4.445 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004528/0.325, allocations: 206.1 kB / 495.9 MB, free: 4.242 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001645/0.3266, allocations: 1.148 MB / 497 MB, free: 3.012 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004772/0.3271, allocations: 214.6 kB / 497.2 MB, free: 2.793 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002931/0.3274, allocations: 148.8 kB / 497.4 MB, free: 2.645 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.143e-05/0.3275, allocations: 0 / 497.4 MB, free: 2.645 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000292/0.3278, allocations: 174.1 kB / 497.6 MB, free: 2.453 MB / 362.7 MB Notification: Performance of pre-optimization done (n=22): time 1.773e-06/0.3278, allocations: 0 / 497.6 MB, free: 2.453 MB / 362.7 MB Notification: Performance of matching and sorting (n=22): time 0.001465/0.3293, allocations: 0.5498 MB / 498.1 MB, free: 1.875 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.759e-05/0.3293, allocations: 132.5 kB / 498.2 MB, free: 1.715 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002265/0.3296, allocations: 248.9 kB / 498.5 MB, free: 1.465 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.486e-05/0.3296, allocations: 29.7 kB / 498.5 MB, free: 1.43 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.423e-05/0.3297, allocations: 168.4 kB / 498.7 MB, free: 1.262 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.012e-05/0.3298, allocations: 71 kB / 498.7 MB, free: 1.191 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.371e-05/0.3298, allocations: 4 kB / 498.8 MB, free: 1.188 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001051/0.3299, allocations: 330.8 kB / 499.1 MB, free: 0.8555 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001518/0.3301, allocations: 75.97 kB / 499.1 MB, free: 0.7812 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001768/0.3302, allocations: 133.1 kB / 499.3 MB, free: 0.6328 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002872/0.3305, allocations: 171.3 kB / 499.4 MB, free: 464 kB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.3306, allocations: 3.938 kB / 499.4 MB, free: 460 kB / 362.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004695/0.331, allocations: 294 kB / 499.7 MB, free: 156 kB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.487e-05/0.3311, allocations: 8 kB / 499.7 MB, free: 148 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.191e-06/0.3311, allocations: 3.938 kB / 499.7 MB, free: 144 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003171/0.3314, allocations: 100.9 kB / 499.8 MB, free: 40 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001204/0.3315, allocations: 23.98 kB / 499.9 MB, free: 16 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00209/0.3336, allocations: 1.986 MB / 0.4901 GB, free: 13.89 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002017/0.3338, allocations: 43.83 kB / 0.4901 GB, free: 13.85 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.783e-05/0.3339, allocations: 8 kB / 0.4901 GB, free: 13.84 MB / 378.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,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.idealTriac.idealThyristor.off,idealTriac.idealThyristor.off,$PRE.idealTriac.idealThyristor1.off,idealTriac.idealThyristor1.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 10} Notification: Performance of prepare postOptimizeDAE: time 0.0001451/0.334, allocations: 141.8 kB / 0.4903 GB, free: 13.7 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.469e-05/0.334, allocations: 23.72 kB / 0.4903 GB, free: 13.67 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.499e-05/0.3341, allocations: 30.17 kB / 0.4903 GB, free: 13.64 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.376e-06/0.3341, allocations: 8 kB / 0.4903 GB, free: 13.64 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.653e-06/0.3341, allocations: 0 / 0.4903 GB, free: 13.64 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.3341, allocations: 3.938 kB / 0.4903 GB, free: 13.63 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009669/0.3351, allocations: 0.8063 MB / 0.4911 GB, free: 12.77 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.3351, allocations: 4 kB / 0.4911 GB, free: 12.76 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001097/0.3352, allocations: 27.95 kB / 0.4912 GB, free: 12.73 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00024/0.3355, allocations: 88.84 kB / 0.4912 GB, free: 12.64 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.893e-05/0.3355, allocations: 7.938 kB / 0.4913 GB, free: 12.64 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001945/0.3375, allocations: 1.946 MB / 0.4932 GB, free: 10.56 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.3375, allocations: 3.938 kB / 0.4932 GB, free: 10.56 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006268/0.3381, allocations: 454.2 kB / 0.4936 GB, free: 10.09 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001046/0.3382, allocations: 117 kB / 0.4937 GB, free: 9.961 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.516e-05/0.3383, allocations: 12 kB / 0.4937 GB, free: 9.949 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001899/0.3385, allocations: 15.98 kB / 0.4937 GB, free: 9.934 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.222e-05/0.3386, allocations: 43.88 kB / 0.4938 GB, free: 9.891 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.427e-05/0.3386, allocations: 4 kB / 0.4938 GB, free: 9.887 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001552/0.3388, allocations: 176.5 kB / 0.4939 GB, free: 9.715 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3388, allocations: 0 / 0.4939 GB, free: 9.715 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004318/0.3392, allocations: 99.78 kB / 0.494 GB, free: 9.617 MB / 378.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.y,booleanPulse.pulseStart,idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off) * Number of discrete states: 2 (idealTriac.idealThyristor.off,idealTriac.idealThyristor1.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001743/0.3394, allocations: 111.3 kB / 0.4941 GB, free: 9.496 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006483/0.34, allocations: 358.7 kB / 0.4945 GB, free: 9.133 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.3401, allocations: 0 / 0.4945 GB, free: 9.133 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003753/0.3404, allocations: 272.6 kB / 0.4947 GB, free: 8.855 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004245/0.3409, allocations: 56.28 kB / 0.4948 GB, free: 8.801 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001066/0.3419, allocations: 0.7453 MB / 0.4955 GB, free: 8.02 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003023/0.3423, allocations: 0.7638 MB / 0.4963 GB, free: 7.23 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.017e-05/0.3423, allocations: 19.44 kB / 0.4963 GB, free: 7.215 MB / 378.7 MB Notification: Performance of SimCode: time 7.805e-06/0.3423, allocations: 0 / 0.4963 GB, free: 7.215 MB / 378.7 MB Notification: Performance of Templates: time 0.006102/0.3484, allocations: 4.62 MB / 0.5008 GB, free: 2.609 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches