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) 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) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001077/0.001077, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001162/0.001162, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.33/1.33, allocations: 227.4 MB / 246.8 MB, free: 10.56 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001186/0.001186, allocations: 69.45 kB / 307.1 MB, free: 0.5273 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08238/0.08358, allocations: 50.52 MB / 357.6 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.004194/0.08781, allocations: 2.936 MB / 360.5 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00142/0.08925, allocations: 0.8024 MB / 361.3 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001958/0.08947, allocations: 4 kB / 361.3 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001579/0.08965, allocations: 47.45 kB / 361.4 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002222/0.08989, allocations: 103.1 kB / 361.5 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003407/0.09023, allocations: 115.8 kB / 361.6 MB, free: 9.977 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000435/0.09068, allocations: 410.2 kB / 362 MB, free: 9.574 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002559/0.09094, allocations: 131.2 kB / 362.1 MB, free: 9.449 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002732/0.09123, allocations: 159.4 kB / 362.3 MB, free: 9.293 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002205/0.09146, allocations: 163.3 kB / 362.4 MB, free: 9.133 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.73e-05/0.09153, allocations: 40 kB / 362.5 MB, free: 9.094 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.669e-05/0.09163, allocations: 44 kB / 362.5 MB, free: 9.051 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.992e-05/0.09171, allocations: 79.69 kB / 362.6 MB, free: 8.973 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001583/0.09187, allocations: 175.2 kB / 362.8 MB, free: 8.801 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000386/0.09226, allocations: 434.8 kB / 363.2 MB, free: 8.375 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.09228, allocations: 0 / 363.2 MB, free: 8.375 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.09228, allocations: 0 / 363.2 MB, free: 8.375 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.324e-05/0.0923, allocations: 0 / 363.2 MB, free: 8.375 MB / 302.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.0009803/0.09329, allocations: 0.6207 MB / 363.8 MB, free: 7.703 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.516e-05/0.09333, allocations: 8.031 kB / 363.8 MB, free: 7.695 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.22e-05/0.0934, allocations: 58.73 kB / 363.9 MB, free: 7.629 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001726/0.09358, allocations: 44.55 kB / 363.9 MB, free: 7.586 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003097/0.0939, allocations: 292.6 kB / 364.2 MB, free: 7.258 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.138e-05/0.09393, allocations: 20.94 kB / 364.2 MB, free: 7.234 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.312e-05/0.09398, allocations: 24.38 kB / 364.2 MB, free: 7.211 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004728/0.09445, allocations: 296.6 kB / 364.5 MB, free: 6.906 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.237e-06/0.09447, allocations: 3.938 kB / 364.5 MB, free: 6.902 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.926e-05/0.09451, allocations: 12 kB / 364.5 MB, free: 6.891 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.094e-06/0.09452, allocations: 4 kB / 364.6 MB, free: 6.887 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004143/0.09494, allocations: 202.2 kB / 364.7 MB, free: 6.691 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001589/0.09654, allocations: 1.152 MB / 365.9 MB, free: 5.461 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004902/0.09704, allocations: 222.6 kB / 366.1 MB, free: 5.234 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002881/0.09734, allocations: 140.8 kB / 366.3 MB, free: 5.094 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.968e-05/0.09737, allocations: 4 kB / 366.3 MB, free: 5.09 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003004/0.09768, allocations: 166.7 kB / 366.4 MB, free: 4.902 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.603e-06/0.09769, allocations: 3.938 kB / 366.4 MB, free: 4.898 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.001387/0.09909, allocations: 0.5107 MB / 366.9 MB, free: 4.359 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.118e-05/0.09917, allocations: 136.5 kB / 367.1 MB, free: 4.195 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000227/0.0994, allocations: 241 kB / 367.3 MB, free: 3.949 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.774e-05/0.09944, allocations: 29.7 kB / 367.3 MB, free: 3.914 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001014/0.09955, allocations: 176.3 kB / 367.5 MB, free: 3.738 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.894e-05/0.09961, allocations: 71.11 kB / 367.6 MB, free: 3.668 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.725e-05/0.09971, allocations: 57.61 kB / 367.6 MB, free: 3.605 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001078/0.09982, allocations: 330.8 kB / 368 MB, free: 3.273 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000157/0.09999, allocations: 67.98 kB / 368 MB, free: 3.207 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001781/0.1002, allocations: 125.1 kB / 368.1 MB, free: 3.066 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002919/0.1005, allocations: 173.1 kB / 368.3 MB, free: 2.887 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-06/0.1005, allocations: 0 / 368.3 MB, free: 2.887 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004866/0.101, allocations: 294 kB / 368.6 MB, free: 2.59 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.57e-05/0.101, allocations: 4.094 kB / 368.6 MB, free: 2.586 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.109e-06/0.101, allocations: 11.94 kB / 368.6 MB, free: 2.574 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003232/0.1013, allocations: 92.8 kB / 368.7 MB, free: 2.48 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001326/0.1015, allocations: 27.92 kB / 368.7 MB, free: 2.453 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002335/0.1038, allocations: 2.143 MB / 370.9 MB, free: 172 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000215/0.1041, allocations: 35.77 kB / 370.9 MB, free: 136 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.607e-05/0.1041, allocations: 4 kB / 370.9 MB, free: 132 kB / 302.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.1428/0.2469, allocations: 148.9 kB / 371.1 MB, free: 19.91 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.956e-05/0.247, allocations: 26.28 kB / 371.1 MB, free: 19.91 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.715e-05/0.2471, allocations: 30.09 kB / 371.1 MB, free: 19.91 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.961e-06/0.2471, allocations: 6.859 kB / 371.1 MB, free: 19.91 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.2471, allocations: 0.875 kB / 371.1 MB, free: 19.91 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.009e-06/0.2471, allocations: 1.172 kB / 371.1 MB, free: 19.91 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001023/0.2481, allocations: 0.7745 MB / 371.9 MB, free: 19.53 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.656e-06/0.2481, allocations: 3.641 kB / 371.9 MB, free: 19.53 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001319/0.2483, allocations: 20.25 kB / 371.9 MB, free: 19.53 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002863/0.2486, allocations: 91.75 kB / 372 MB, free: 19.52 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.246e-05/0.2486, allocations: 8.719 kB / 372 MB, free: 19.52 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00179/0.2504, allocations: 2.147 MB / 374.2 MB, free: 18.04 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.2504, allocations: 0 / 374.2 MB, free: 18.04 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006145/0.251, allocations: 455.4 kB / 374.6 MB, free: 17.85 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.44e-05/0.2512, allocations: 128.8 kB / 374.7 MB, free: 17.74 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.953e-05/0.2512, allocations: 3.312 kB / 374.7 MB, free: 17.74 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002081/0.2514, allocations: 22.11 kB / 374.8 MB, free: 17.73 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001036/0.2515, allocations: 37.52 kB / 374.8 MB, free: 17.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.515e-05/0.2515, allocations: 5.328 kB / 374.8 MB, free: 17.73 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001558/0.2517, allocations: 179.7 kB / 375 MB, free: 17.62 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2517, allocations: 0 / 375 MB, free: 17.62 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004654/0.2522, allocations: 91.42 kB / 375.1 MB, free: 17.61 MB / 302.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.0007804/0.253, allocations: 0.9944 MB / 376.1 MB, free: 16.8 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006589/0.2536, allocations: 359.1 kB / 376.4 MB, free: 16.6 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.2537, allocations: 0.5 kB / 376.4 MB, free: 16.6 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003591/0.254, allocations: 270.5 kB / 376.7 MB, free: 16.43 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004079/0.2544, allocations: 63.33 kB / 376.7 MB, free: 16.4 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002931/0.2574, allocations: 2.782 MB / 379.5 MB, free: 14.51 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001854/0.2576, allocations: 0.7661 MB / 380.3 MB, free: 13.81 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001011/0.2577, allocations: 23.52 kB / 380.3 MB, free: 13.8 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.435e-05/0.2578, allocations: 83.05 kB / 380.4 MB, free: 13.73 MB / 302.1 MB Notification: Performance of SimCode: time 3.31e-07/0.2578, allocations: 0 / 380.4 MB, free: 13.73 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03055/0.2884, allocations: 7.445 MB / 387.8 MB, free: 12.04 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.81/12.1, allocations: 1.344 kB / 387.8 MB, free: 12.04 MB / 302.1 MB (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 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_IdealTriacCircuit.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches